Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f6ed88 + 280387d commit 9491cb9Copy full SHA for 9491cb9
‎client/packages/lowcoder/src/comps/editorState.tsx
@@ -493,6 +493,15 @@ export class EditorState {
493
if (name !== oldName && this.nameAndExposingInfo().hasOwnProperty(name)) {
494
return trans("comp.nameExists", { name: name });
495
}
496
+
497
+ //Check query variable name duplication
498
+ const queryComInfoList:string[] = [].concat(...(this.getQueriesComp()
499
+ .toJsonValue().map((item: any) => item.variables.variables.map((v: any) => v.key))));
500
501
+ if (name !== oldName && queryComInfoList.includes(name)) {
502
+ return trans("comp.nameExists", { name: name });
503
+ }
504
505
return "";
506
507
0 commit comments