Browse Source

fix: null check for serialized column names

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/6955/head
mertmit 1 year ago
parent
commit
57bc308a84
  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