Browse Source

fix(at-import): select options match duplicates case-insensitive

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3937/head
mertmit 2 years ago
parent
commit
7645f5c5c0
  1. 2
      packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

2
packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

@ -446,7 +446,7 @@ export default async (
// TODO fix record mapping (this causes every record to map first option, we can't handle them using data api as they don't provide option id within data we might instead get the correct mapping from schema file )
let dupNo = 1;
const defaultName = (value as any).name;
while (options.find((el) => el.title === (value as any).name)) {
while (options.find((el) => el.title.toLowerCase() === (value as any).name.toLowerCase())) {
(value as any).name = `${defaultName}_${dupNo++}`;
}
options.push({

Loading…
Cancel
Save