feat: remove file and file[] restriction in code node (#17382)

This commit is contained in:
Good Wood
2025-04-03 16:23:19 +08:00
committed by GitHub
parent 4902ddaf87
commit b3f4e90862
2 changed files with 6 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ const useConfig = (id: string, payload: CodeNodeType) => {
})
const filterVar = useCallback((varPayload: Var) => {
return [VarType.string, VarType.number, VarType.secret, VarType.object, VarType.array, VarType.arrayNumber, VarType.arrayString, VarType.arrayObject].includes(varPayload.type)
return [VarType.string, VarType.number, VarType.secret, VarType.object, VarType.array, VarType.arrayNumber, VarType.arrayString, VarType.arrayObject, VarType.file, VarType.arrayFile].includes(varPayload.type)
}, [])
// single run