mirror of https://github.com/langgenius/dify.git
feat: add support for array types in available variable list (#7715)
This commit is contained in:
parent
26abbe8e5b
commit
3a67fc6c5a
|
|
@ -44,7 +44,7 @@ const EditBody: FC<Props> = ({
|
|||
const { availableVars, availableNodes } = useAvailableVarList(nodeId, {
|
||||
onlyLeafNodeVar: false,
|
||||
filterVar: (varPayload: Var) => {
|
||||
return [VarType.string, VarType.number, VarType.secret].includes(varPayload.type)
|
||||
return [VarType.string, VarType.number, VarType.secret, VarType.arrayNumber, VarType.arrayString].includes(varPayload.type)
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue