From 57bc308a84a61da5628e9b2f7a32fc675f4925b8 Mon Sep 17 00:00:00 2001 From: mertmit Date: Sat, 11 Nov 2023 17:30:12 +0300 Subject: [PATCH] fix: null check for serialized column names Signed-off-by: mertmit --- .../src/modules/jobs/jobs/export-import/import.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts b/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts index 10fd0ed6bc..faed623a15 100644 --- a/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts +++ b/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);