mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 13:55:58 +08:00
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, {
|
const { availableVars, availableNodes } = useAvailableVarList(nodeId, {
|
||||||
onlyLeafNodeVar: false,
|
onlyLeafNodeVar: false,
|
||||||
filterVar: (varPayload: Var) => {
|
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…
x
Reference in New Issue
Block a user