mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-23 20:13:20 +00:00
Fix infinity fetch workspace (#6106)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
5816a0dedd
commit
a8aaf5bd74
@ -88,6 +88,13 @@ export async function connect (title: string): Promise<Client | undefined> {
|
||||
if (ws !== getCurrentLocation().path[1]) return
|
||||
workspaceCreating.set(loginInfo?.createProgress ?? 0)
|
||||
loginInfo = await ctx.with('fetch-workspace', {}, async () => (await fetchWorkspace(ws))[1])
|
||||
if (loginInfo === undefined) {
|
||||
// something went wrong, workspace not exist, redirect to login
|
||||
navigate({
|
||||
path: [loginId]
|
||||
})
|
||||
return
|
||||
}
|
||||
workspaceCreating.set(loginInfo?.createProgress)
|
||||
if (loginInfo?.creating === false) {
|
||||
workspaceCreating.set(-1)
|
||||
|
Loading…
Reference in New Issue
Block a user