mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-24 16:01:42 +00:00
fix flow input transform error
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user