fix nit first step's input synchronized with flow schema
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user