Browse Source

fix: skip lookup/rollup if LTAR missing

Signed-off-by: mertmit <mertmit99@gmail.com>
feat/export-nest
mertmit 2 years ago
parent
commit
27a3a5b7f7
  1. 2
      packages/nocodb/src/lib/services/exportImport/import.svc.ts

2
packages/nocodb/src/lib/services/exportImport/import.svc.ts

@ -227,6 +227,7 @@ export async function importModels(param: {
for (const col of sortedReferencedColumnSet) {
const { colOptions, ...flatCol } = col;
if (col.uidt === UITypes.Lookup) {
if (!idMap.get(colOptions.fk_relation_column_id)) continue;
const freshModelData = await columnService.columnAdd({
tableId: idMap.get(getParentIdentifier(col.id)),
column: withoutId({
@ -246,6 +247,7 @@ export async function importModels(param: {
}
}
} else if (col.uidt === UITypes.Rollup) {
if (!idMap.get(colOptions.fk_relation_column_id)) continue;
const freshModelData = await columnService.columnAdd({
tableId: idMap.get(getParentIdentifier(col.id)),
column: withoutId({

Loading…
Cancel
Save