{#if $selectedId?.startsWith('settings')} {:else if $selectedId === 'Input'} { $selectedId = 'triggers' selectedTrigger.set(ev.detail.kind) defaultValues.set(ev.detail.config) captureOn.set(true) showCaptureHint.set(true) }} on:applyArgs /> {:else if $selectedId === 'Result'} The result of the flow will be the result of the last node. {:else if $selectedId === 'constants'} {:else if $selectedId === 'failure'} {:else if $selectedId === 'preprocessor'} {:else if $selectedId === 'triggers'} { await insertNewPreprocessorModule(flowStore, flowStateStore, { language: 'bun', subkind: 'preprocessor' }) $selectedId = 'preprocessor' }} on:updateSchema={(e) => { const { payloadData, redirect } = e.detail if (payloadData) { $previewArgs = JSON.parse(JSON.stringify(payloadData)) } if (redirect) { $selectedId = 'Input' $flowInputEditorState.selectedTab = 'captures' $flowInputEditorState.payloadData = payloadData } }} on:testWithArgs currentPath={$pathStore} {initialPath} schema={$flowStore.schema} {noEditor} newItem={newFlow} isFlow={true} hasPreprocessor={!!$flowStore.value.preprocessor_module} canHavePreprocessor={true} /> {:else if $selectedId.startsWith('subflow:')} Selected step is witin an expanded subflow and is not directly editable in the flow editor {:else} {@const dup = checkDup($flowStore.value.modules)} {#if dup} There are duplicate modules in the flow at id: {dup} {:else} {#key $selectedId} {#each $flowStore.value.modules as flowModule, index (flowModule.id ?? index)} {/each} {/key} {/if} {/if}
The result of the flow will be the result of the last node.