mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-09 01:10:17 +00:00
Fix join redirect (#2266)
This commit is contained in:
parent
5d21c35ca6
commit
d8607c42d0
@ -289,10 +289,6 @@ export async function checkJoined (inviteId: string): Promise<[Status, Workspace
|
||||
const tokens: Record<string, string> = fetchMetadataLocalStorage(login.metadata.LoginTokens) ?? {}
|
||||
token = Object.values(tokens)[0]
|
||||
if (token === undefined) {
|
||||
const loc = getCurrentLocation()
|
||||
loc.path[1] = 'login'
|
||||
loc.path.length = 2
|
||||
navigate(loc)
|
||||
return [unknownStatus('Please login'), undefined]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user