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 ?? {}) };