From 6d2ae7351fa507e37a438d07d0670d2bc44ec19f Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 5 Jul 2024 18:51:43 +0200 Subject: [PATCH] fix nit first step's input synchronized with flow schema --- frontend/src/lib/components/flows/flowStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/flows/flowStore.ts b/frontend/src/lib/components/flows/flowStore.ts index 582d5e4b4c..0fe8b26136 100644 --- a/frontend/src/lib/components/flows/flowStore.ts +++ b/frontend/src/lib/components/flows/flowStore.ts @@ -20,7 +20,7 @@ export async function copyFirstStepSchema(flowState: FlowState, flowStore: Writa const firstModuleId = flow.value.modules[0]?.id if (flowState[firstModuleId] && firstModuleId) { - flow.schema = flowState[firstModuleId].schema + flow.schema = structuredClone(flowState[firstModuleId].schema) const v = flow.value.modules[0].value if (v.type == 'rawscript' || v.type == 'script') { Object.keys(v.input_transforms ?? {}).forEach((key) => {