mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-08 21:27:45 +03:00
Fix concurrency workspace creation (#5742)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
e673345a4b
commit
e67e554839
@ -93,6 +93,7 @@ export async function connect (title: string): Promise<Client | undefined> {
|
||||
let loginInfo = await ctx.with('select-workspace', {}, async () => (await fetchWorkspace(ws))[1])
|
||||
if (loginInfo?.creating === true) {
|
||||
while (true) {
|
||||
if (ws !== getCurrentLocation().path[1]) return
|
||||
workspaceCreating.set(loginInfo?.createProgress ?? 0)
|
||||
loginInfo = await ctx.with('select-workspace', {}, async () => (await fetchWorkspace(ws))[1])
|
||||
workspaceCreating.set(loginInfo?.createProgress)
|
||||
|
Loading…
Reference in New Issue
Block a user