Skip to content

Commit

Permalink
Fix Waiting for Load (#2991)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr authored Jan 26, 2024
1 parent 763e991 commit 7dd553b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/zui/src/domain/loads/operations/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const submit = createOperation(
const pool = await createPool(data)
const script = new ZedScript(data.shaper || "")
// Async so that we can return this and subscribe to updates on the load.
const promise = zui.pools
// Do not wait for the load to finish in this operation.
zui.pools
.load({
windowId: data.windowId,
format: data.format,
Expand All @@ -36,8 +37,6 @@ export const submit = createOperation(
})

zui.window.openTab(poolPath(pool.id))

return promise
}
)

Expand Down

0 comments on commit 7dd553b

Please sign in to comment.