1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-05 14:50:29 +02:00

GH-2551 - Update correct routes after welcome page (#2644)

* update correct routes after welcome page

* fix unit tests
This commit is contained in:
Scott Bishel 2022-03-29 02:16:09 -06:00 committed by GitHub
parent c336f06f19
commit f7fe5df8e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,8 +48,11 @@ const WelcomePage = () => {
history.replace(queryString.get('r')!)
return
}
history.replace(`/team/${currentTeam?.id}`)
if (currentTeam) {
history.replace(`/team/${currentTeam?.id}`)
} else {
history.replace('/')
}
}
const skipTour = async () => {