feat: default set var name

This commit is contained in:
Joel
2024-02-20 14:04:24 +08:00
parent 7a0358827a
commit 2a196e91a6

View File

@@ -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)
}