mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-03 08:45:40 +02:00
* Partial fix for #2430 * Fix #2430. Bypass welcome screen for Personal Desktop * Skip welcome page only for Personal Desktop * Removed API changes. Webapp changes were sufficient Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
This commit is contained in:
parent
f39ff07c81
commit
a77f53fd94
@ -102,7 +102,7 @@ const App = (props: Props): JSX.Element => {
|
||||
}
|
||||
|
||||
const continueToWelcomeScreen = () => {
|
||||
return loggedIn === true && !me?.props[UserPropPrefix + UserSettingKey.WelcomePageViewed]
|
||||
return (me?.id !== 'single-user') && loggedIn === true && !(me?.props && me?.props[UserPropPrefix + UserSettingKey.WelcomePageViewed])
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -86,7 +86,7 @@ const WelcomePage = () => {
|
||||
history.replace(newPath)
|
||||
}
|
||||
|
||||
if (me?.props[UserPropPrefix + UserSettingKey.WelcomePageViewed]) {
|
||||
if (me?.props && me?.props[UserPropPrefix + UserSettingKey.WelcomePageViewed]) {
|
||||
goForward()
|
||||
return null
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ export const getOnboardingTourStarted = createSelector(
|
||||
return false
|
||||
}
|
||||
|
||||
return Boolean(me.props.focalboard_onboardingTourStarted)
|
||||
return Boolean(me.props?.focalboard_onboardingTourStarted)
|
||||
},
|
||||
)
|
||||
|
||||
@ -123,11 +123,11 @@ export const getOnboardingTourStep = createSelector(
|
||||
return ''
|
||||
}
|
||||
|
||||
return me.props.focalboard_onboardingTourStep
|
||||
return me.props?.focalboard_onboardingTourStep
|
||||
},
|
||||
)
|
||||
|
||||
export const getOnboardingTourCategory = createSelector(
|
||||
getMe,
|
||||
(me): string => (me ? me.props.focalboard_tourCategory : ''),
|
||||
(me): string => (me ? me.props?.focalboard_tourCategory : ''),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user