Skip to content

Commit

Permalink
feat(frontend): add prop picker to iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Oct 2, 2022
1 parent ee15bd9 commit 0c25d80
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import FlowLoop from './FlowLoop.svelte'
import FlowFailureModule from './FlowFailureModule.svelte'
export let previewArgs: Record<string, any> = {}
export let initialPath: string
const { selectedId } = getContext<FlowEditorContext>('FlowEditorContext')
Expand All @@ -23,7 +21,7 @@
{:else if $selectedId === 'settings-retries'}
<FlowSettings {initialPath} defaultTab="retries" />
{:else if $selectedId.includes('loop')}
<FlowLoop {previewArgs} />
<FlowLoop />
{:else if $selectedId === 'inputs'}
<FlowInput />
{:else if $selectedId === 'failure'}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
<script lang="ts">
import { getContext } from 'svelte'
import { flowStateStore } from '../flowState'
import { flowStore } from '../flowStore'
import type { FlowEditorContext } from '../types'
import FlowModule from './FlowModule.svelte'
const { previewArgs } = getContext<FlowEditorContext>('FlowEditorContext')
</script>

{#if $flowStore.value.failure_module}
<FlowModule
{previewArgs}
bind:flowModule={$flowStore.value.failure_module}
bind:flowModuleState={$flowStateStore.failureModule}
on:delete={() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
{#if mod.type == 'forloopflow' && state != undefined}
<FlowModule
failureModule={false}
previewArgs={$previewArgs}
bind:flowModule={mod.modules[childIndex]}
bind:flowModuleState={state[childIndex]}
on:delete={() => {
Expand All @@ -41,7 +40,6 @@
{:else if $flowStore.value.modules[parentIndex]}
<FlowModule
failureModule={false}
previewArgs={$previewArgs}
bind:flowModule={$flowStore.value.modules[parentIndex]}
bind:flowModuleState={$flowStateStore.modules[parentIndex]}
on:delete={() => {
Expand Down

0 comments on commit 0c25d80

Please sign in to comment.