fix: iteration output var type

This commit is contained in:
Joel 2024-10-08 14:54:21 +08:00
parent 7e2984b6e2
commit 691a7f727a

View File

@ -50,6 +50,7 @@ const useConfig = (id: string, payload: IterationNodeType) => {
[VarType.string]: VarType.arrayString,
[VarType.number]: VarType.arrayNumber,
[VarType.object]: VarType.arrayObject,
[VarType.file]: VarType.arrayFile,
} as Record<VarType, VarType>)[outputItemType] || VarType.arrayString
})
setInputs(newInputs)