mirror of
https://github.com/langgenius/dify.git
synced 2026-01-05 22:15:52 +00:00
feat: default set var name
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user