fix flow input transform error

This commit is contained in:
Ruben Fiszel
2022-12-02 15:36:41 +01:00
parent b629552a25
commit 433512dcb3
2 changed files with 4 additions and 3 deletions
@@ -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'}
<ArgInput
autofocus={i == 0 && autofocus}
label={argName}
@@ -91,6 +91,8 @@
{itemPicker}
bind:pickForField
/>
{:else}
Expected args to be an object, got {JSON.stringify(args)} instead
{/if}
</div>
{/each}
@@ -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)