fix: fix preprocessor preview

This commit is contained in:
Ruben Fiszel
2025-08-20 17:53:08 +00:00
parent 01e0757be7
commit e591dce70a
2 changed files with 4 additions and 1 deletions
@@ -35,7 +35,6 @@
}
export function loadArgsAndRunTest() {
console.log('loadArgsAndRunTest', flowStateStore.val)
testSteps?.updateStepArgs(mod.id, flowStateStore.val, flowStore?.val, previewArgs?.val)
runTest(testSteps.getStepArgs(mod.id)?.value)
}
@@ -143,6 +143,10 @@ export class TestSteps {
flow: OpenFlow | undefined,
previewArgs: Record<string, any> | undefined
) {
if (id == 'preprocessor') {
this.#steps[id] = { value: {} }
return
}
if (!flowState || !flow) {
return
}