From 7dd553b480c576c70e608320e81db39f9dcbc23b Mon Sep 17 00:00:00 2001 From: James Kerr Date: Fri, 26 Jan 2024 12:03:19 -0800 Subject: [PATCH] Fix Waiting for Load (#2991) --- apps/zui/src/domain/loads/operations/create.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/zui/src/domain/loads/operations/create.ts b/apps/zui/src/domain/loads/operations/create.ts index 72353fc354..90627de839 100644 --- a/apps/zui/src/domain/loads/operations/create.ts +++ b/apps/zui/src/domain/loads/operations/create.ts @@ -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, @@ -36,8 +37,6 @@ export const submit = createOperation( }) zui.window.openTab(poolPath(pool.id)) - - return promise } )