Browse Source

fix: ignore not migrated column

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
sync
Raju Udava 3 years ago
parent
commit
79d092b150
  1. 5
      packages/nocodb/tests/sync/sync.js

5
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
}

Loading…
Cancel
Save