1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-03 08:45:40 +02:00

Fix for #2430. Bypass Welcome screen for Personal Desktop. (#2431)

* 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:
Chen-I Lim 2022-03-02 06:46:46 -08:00 committed by GitHub
parent f39ff07c81
commit a77f53fd94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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 (

View File

@ -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
}

View File

@ -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 : ''),
)