mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
修正selfVariableName自身变量没有限制选中问题 (#4500)
* docs: 修复线上bug,内外网都发一版 1.9.1-beta.21 * fix(inputFormula): 修正selfVariableName自身变量没有限制选中问题
This commit is contained in:
parent
8395b4bb3a
commit
5f5d564c40
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user