We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e64a0e commit 280387dCopy full SHA for 280387d
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