Skip to content

Commit

Permalink
fix(designer): Update to make connections name case-insensitive (#4279)
Browse files Browse the repository at this point in the history
Update to make capitalization distinction in connections name
  • Loading branch information
ccastrotrejo committed Feb 29, 2024
1 parent 2a3ee91 commit 498fef9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ function _isConnectionParameterHidden(connectionParameter: ConnectionParameter):
}

export const getUniqueName = (keys: string[], prefix: string): { name: string; index: number } => {
const set = new Set(keys.map((name) => name.split('::')[0]));
const set = new Set(keys.map((name) => name.split('::')[0].toLowerCase()));

let index = 0;
let name = prefix;
let name = prefix.toLowerCase();
while (set.has(name)) {
name = `${prefix}-${++index}`;
}
Expand Down

0 comments on commit 498fef9

Please sign in to comment.