fix nit first step's input synchronized with flow schema

This commit is contained in:
Ruben Fiszel
2024-07-05 18:51:43 +02:00
parent 0a74faeeaf
commit 6d2ae7351f

View File

@@ -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) => {