This commit is contained in:
Ruben Fiszel
2025-08-20 09:28:00 +00:00
parent afb1519642
commit c6fbefc27d
2 changed files with 4 additions and 3 deletions

View File

@@ -17,14 +17,15 @@
getContext<FlowEditorContext | undefined>('FlowEditorContext') || {}
onMount(() => {
testSteps?.updateStepArgs(id, flowStateStore, flowStore?.val, previewArgs?.val)
testSteps?.updateStepArgs(id, flowStateStore?.val, flowStore?.val, previewArgs?.val)
})
const input = $derived(testSteps?.getStepArgs(id)?.value)
</script>
<div class="p-4 pr-6 h-full overflow-y-auto">
<ObjectViewer json={input} {inputTransform} {metaData} {editKey} />
<!-- {JSON.stringify({ inputTransform, input })} -->
<ObjectViewer json={input} {metaData} {editKey} />
</div>
{#snippet metaData(key: string)}

View File

@@ -12,7 +12,7 @@ export class TestSteps {
#stepsEvaluated = $state<Record<string, ModuleArgs>>({})
#steps = $state<Record<string, { value: any }>>({})
constructor() {}
constructor() { }
setStepArgsManually(moduleId: string, args: Record<string, any>) {
if (!this.#steps[moduleId]) {