diff --git a/frontend/src/lib/components/SchemaForm.svelte b/frontend/src/lib/components/SchemaForm.svelte index c7baae6565..cf063f8b89 100644 --- a/frontend/src/lib/components/SchemaForm.svelte +++ b/frontend/src/lib/components/SchemaForm.svelte @@ -31,7 +31,7 @@ let inputCheck: { [id: string]: boolean } = {} $: isValid = allTrue(inputCheck) ?? false - $: if (args == undefined) { + $: if (args == undefined || typeof args !== 'object') { args = {} } @@ -67,7 +67,7 @@ {itemPicker} bind:pickForField /> - {:else} + {:else if typeof args == 'object'} + {:else} + Expected args to be an object, got {JSON.stringify(args)} instead {/if} {/each} diff --git a/frontend/src/lib/components/flows/flowStore.ts b/frontend/src/lib/components/flows/flowStore.ts index f352f68184..ee13a56d23 100644 --- a/frontend/src/lib/components/flows/flowStore.ts +++ b/frontend/src/lib/components/flows/flowStore.ts @@ -37,7 +37,6 @@ export function dfs(modules: FlowModule[]): string[] { export async function initFlow(flow: Flow) { - let counter = 0 for (const mod of flow.value.modules) { migrateFlowModule(mod)