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

Loading…
Cancel
Save