修正selfVariableName自身变量没有限制选中问题 (#4500)

* docs: 修复线上bug,内外网都发一版 1.9.1-beta.21

* fix(inputFormula): 修正selfVariableName自身变量没有限制选中问题
This commit is contained in:
刘丹 2022-05-31 09:44:30 +08:00 committed by GitHub
parent 8395b4bb3a
commit 5f5d564c40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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