Feat: sync input variable names to main() function (#21667)
This commit is contained in:
parent
2455135eaa
commit
25de39d9c6
9 changed files with 102 additions and 2 deletions
|
|
@ -65,10 +65,11 @@ const VarList: FC<Props> = ({
|
|||
}, [list, onVarNameChange, onChange])
|
||||
|
||||
const handleVarReferenceChange = useCallback((index: number) => {
|
||||
return (value: ValueSelector | string, varKindType: VarKindType) => {
|
||||
return (value: ValueSelector | string, varKindType: VarKindType, varInfo?: Var) => {
|
||||
const newList = produce(list, (draft) => {
|
||||
if (!isSupportConstantValue || varKindType === VarKindType.variable) {
|
||||
draft[index].value_selector = value as ValueSelector
|
||||
draft[index].value_type = varInfo?.type
|
||||
if (isSupportConstantValue)
|
||||
draft[index].variable_type = VarKindType.variable
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue