Browse Source

fix: use parseMetaProp on export service

pull/7823/head
mertmit 9 months ago
parent
commit
d92ac512ac
  1. 6
      packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts

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

@ -13,6 +13,7 @@ import NcPluginMgrv2 from '~/helpers/NcPluginMgrv2';
import { NcError } from '~/helpers/catchError'; import { NcError } from '~/helpers/catchError';
import { DatasService } from '~/services/datas.service'; import { DatasService } from '~/services/datas.service';
import { Base, Hook, Model, Source } from '~/models'; import { Base, Hook, Model, Source } from '~/models';
import { parseMetaProp } from '~/utils/modelUtils';
@Injectable() @Injectable()
export class ExportService { export class ExportService {
@ -220,10 +221,7 @@ export class ExportService {
break; break;
case 'meta': case 'meta':
if (view.type === ViewTypes.KANBAN) { if (view.type === ViewTypes.KANBAN) {
const meta = JSON.parse(view.view.meta as string) as Record< const meta = parseMetaProp(view.view) as Record<string, any>;
string,
any
>;
for (const [k, v] of Object.entries(meta)) { for (const [k, v] of Object.entries(meta)) {
const colId = idMap.get(k as string); const colId = idMap.get(k as string);
for (const op of v) { for (const op of v) {

Loading…
Cancel
Save