From 4bfda45c726a2b43f8aa2d160dabbcb9278aaf04 Mon Sep 17 00:00:00 2001 From: Faton Ramadani Date: Thu, 20 Jun 2024 16:24:33 +0200 Subject: [PATCH] Correctly initialize the flowInputStore(#3940) * fix(frontend): Correctly initialize the flowInputStore for picked scripts/flows * fix(frontend): Correctly initialize the flowInputStore for picked scripts/flows --- .../components/flows/content/FlowModuleWrapper.svelte | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/lib/components/flows/content/FlowModuleWrapper.svelte b/frontend/src/lib/components/flows/content/FlowModuleWrapper.svelte index e090614a14..0d011865a4 100644 --- a/frontend/src/lib/components/flows/content/FlowModuleWrapper.svelte +++ b/frontend/src/lib/components/flows/content/FlowModuleWrapper.svelte @@ -62,6 +62,15 @@ flowModule = module $flowStateStore[module.id] = state + + if ($flowInputsStore) { + $flowInputsStore[module?.id] = { + requiredInputsFilled: initRequiredInputFilled( + module?.value, + $flowStateStore[module?.id]?.schema + ) + } + } }