From 70b60d066add2b104e96ef623372e31b9c9c098f Mon Sep 17 00:00:00 2001 From: James Kerr Date: Fri, 26 Jan 2024 11:45:56 -0800 Subject: [PATCH] Fix Waiting for Load --- 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 } )