From bbf5e37f6fe1cade93aa94f7dfed607550297dd3 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 24 May 2024 23:43:13 -0700 Subject: [PATCH] fix --- src/routes/(app)/workspace/models/create/+page.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/(app)/workspace/models/create/+page.svelte b/src/routes/(app)/workspace/models/create/+page.svelte index 47671028e..0247bfbb4 100644 --- a/src/routes/(app)/workspace/models/create/+page.svelte +++ b/src/routes/(app)/workspace/models/create/+page.svelte @@ -95,9 +95,11 @@ success = false; }; - const initModel = (model) => { - id = model.id; + const initModel = async (model) => { name = model.name; + await tick(); + + id = model.id; params = { ...params, ...model?.info?.params }; capabilities = { ...capabilities, ...(model?.info?.meta?.capabilities ?? {}) };