diff --git a/packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts b/packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts index f72ec18d13..5e598a3180 100644 --- a/packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts +++ b/packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts @@ -1,5 +1,5 @@ import { Readable } from 'stream'; -import { UITypes, ViewTypes } from 'nocodb-sdk'; +import { isLinksOrLTAR, UITypes, ViewTypes } from 'nocodb-sdk' import { unparse } from 'papaparse'; import { Injectable, Logger } from '@nestjs/common'; import NcConnectionMgrv2 from '../../../../utils/common/NcConnectionMgrv2'; @@ -352,13 +352,13 @@ export class ExportService { .map((c) => c.title) .join(',') : model.columns - .filter((c) => c.uidt !== UITypes.LinkToAnotherRecord) + .filter((c) => !isLinksOrLTAR(c)) .map((c) => c.title) .join(','); const mmColumns = model.columns.filter( (col) => - col.uidt === UITypes.LinkToAnotherRecord && + isLinksOrLTAR(col) && col.colOptions?.type === 'mm', );