diff --git a/src/components/formula/Editor.tsx b/src/components/formula/Editor.tsx index c3015ce5f..ab28ce01b 100644 --- a/src/components/formula/Editor.tsx +++ b/src/components/formula/Editor.tsx @@ -229,7 +229,7 @@ export class FormulaEditor extends React.Component< handleVariableSelect(item: VariableItem) { const {evalMode, selfVariableName} = this.props; - if (item && item.label && selfVariableName === item.label) { + if (item && item.value && selfVariableName === item.value) { toast.warning('不能使用当前变量[self],避免循环引用。'); return; }