mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 12:37:20 +08:00
fix: var list defalut
This commit is contained in:
parent
90543c458c
commit
d2de16fba2
@ -147,7 +147,7 @@ const useConfig = (id: string, payload: LLMNodeType) => {
|
|||||||
// context
|
// context
|
||||||
const handleContextVarChange = useCallback((newVar: ValueSelector | string) => {
|
const handleContextVarChange = useCallback((newVar: ValueSelector | string) => {
|
||||||
const newInputs = produce(inputs, (draft) => {
|
const newInputs = produce(inputs, (draft) => {
|
||||||
draft.context.variable_selector = newVar as ValueSelector
|
draft.context.variable_selector = newVar as ValueSelector || []
|
||||||
draft.context.enabled = !!(newVar && newVar.length > 0)
|
draft.context.enabled = !!(newVar && newVar.length > 0)
|
||||||
})
|
})
|
||||||
setInputs(newInputs)
|
setInputs(newInputs)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user