Browse Source

Merge pull request #6955 from nocodb/fix/san-dup

fix: null check for serialized column names
pull/6962/head
mertmit 1 year ago committed by GitHub
parent
commit
26f7f29423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts

4
packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts

@ -146,7 +146,9 @@ export class ImportService {
// map column id's with new created column id's
for (const col of table.columns) {
const colRef = modelData.columns.find(
(a) => sanitizeColumnName(a.column_name) === col.column_name,
(a) =>
a.column_name &&
sanitizeColumnName(a.column_name) === col.column_name,
);
idMap.set(colRef.id, col.id);

Loading…
Cancel
Save