From 79d092b1503d4345db12608626860ce5178ac703 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Sat, 7 May 2022 19:11:13 +0530 Subject: [PATCH] fix: ignore not migrated column Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nocodb/tests/sync/sync.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/nocodb/tests/sync/sync.js b/packages/nocodb/tests/sync/sync.js index 4135c03b9f..7e29beafc7 100644 --- a/packages/nocodb/tests/sync/sync.js +++ b/packages/nocodb/tests/sync/sync.js @@ -162,6 +162,11 @@ async function nc_getColumnSchema(aTblFieldId) { let ncTblId = sMap.getNcParentFromAtId(aTblFieldId) let ncColId = sMap.getNcIdFromAtId(aTblFieldId) + + // not migrated column, skip + if(ncColId === undefined || ncTblId === undefined) + return 0 + let ncCol = ncSchema.tablesById[ncTblId].columns.find(x => x.id === ncColId) return ncCol }