mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 04:26:30 +08:00
feat: template support bools input
This commit is contained in:
parent
ea2a1b203c
commit
5b895be412
@ -65,7 +65,6 @@ const useConfig = (id: string, payload: TemplateTransformNodeType) => {
|
|||||||
...defaultConfig,
|
...defaultConfig,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
||||||
}, [defaultConfig])
|
}, [defaultConfig])
|
||||||
|
|
||||||
const handleCodeChange = useCallback((template: string) => {
|
const handleCodeChange = useCallback((template: string) => {
|
||||||
@ -76,7 +75,7 @@ const useConfig = (id: string, payload: TemplateTransformNodeType) => {
|
|||||||
}, [setInputs])
|
}, [setInputs])
|
||||||
|
|
||||||
const filterVar = useCallback((varPayload: Var) => {
|
const filterVar = useCallback((varPayload: Var) => {
|
||||||
return [VarType.string, VarType.number, VarType.object, VarType.array, VarType.arrayNumber, VarType.arrayString, VarType.arrayObject].includes(varPayload.type)
|
return [VarType.string, VarType.number, VarType.boolean, VarType.object, VarType.array, VarType.arrayNumber, VarType.arrayString, VarType.arrayBoolean, VarType.arrayObject].includes(varPayload.type)
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user