Browse Source

fix: kanban import

Signed-off-by: mertmit <mertmit99@gmail.com>
feat/export-nest-dir-restructure
mertmit 2 years ago committed by starbirdtech383
parent
commit
849581d1f5
  1. 8
      packages/nocodb-nest/src/modules/jobs/export-import/import.service.ts

8
packages/nocodb-nest/src/modules/jobs/export-import/import.service.ts

@ -602,6 +602,10 @@ export class ImportService {
});
const kanbanData = withoutNull(vw.view);
if (kanbanData) {
const grpCol = await Column.get({
base_id: md.base_id,
colId: idMap.get(kanbanData['fk_grp_col_id']),
});
for (const [k, v] of Object.entries(kanbanData)) {
switch (k) {
case 'fk_grp_col_id':
@ -614,9 +618,13 @@ export class ImportService {
const tempVal = [];
for (const vl of mv as any) {
if (vl.fk_column_id) {
const id = grpCol.colOptions.options.find(
(el) => el.title === vl.title,
).id;
tempVal.push({
...vl,
fk_column_id: idMap.get(vl.fk_column_id),
id,
});
} else {
delete vl.fk_column_id;

Loading…
Cancel
Save