mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-19 14:55:31 +00: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])
|
let loginInfo = await ctx.with('select-workspace', {}, async () => (await fetchWorkspace(ws))[1])
|
||||||
if (loginInfo?.creating === true) {
|
if (loginInfo?.creating === true) {
|
||||||
while (true) {
|
while (true) {
|
||||||
|
if (ws !== getCurrentLocation().path[1]) return
|
||||||
workspaceCreating.set(loginInfo?.createProgress ?? 0)
|
workspaceCreating.set(loginInfo?.createProgress ?? 0)
|
||||||
loginInfo = await ctx.with('select-workspace', {}, async () => (await fetchWorkspace(ws))[1])
|
loginInfo = await ctx.with('select-workspace', {}, async () => (await fetchWorkspace(ws))[1])
|
||||||
workspaceCreating.set(loginInfo?.createProgress)
|
workspaceCreating.set(loginInfo?.createProgress)
|
||||||
|
Loading…
Reference in New Issue
Block a user