mirror of https://github.com/langgenius/dify.git
feat: default set var name
This commit is contained in:
parent
7a0358827a
commit
2a196e91a6
|
|
@ -30,6 +30,8 @@ const VarList: FC<Props> = ({
|
|||
return (value: ValueSelector) => {
|
||||
const newList = produce(list, (draft) => {
|
||||
draft[index].value_selector = value
|
||||
if (!draft[index].variable)
|
||||
draft[index].variable = value[value.length - 1]
|
||||
})
|
||||
onChange(newList)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue