fix: ignore not migrated column

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2022-05-07 19:11:13 +05:30
parent 9609d5f3bd
commit 79d092b150

View File

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