Browse Source

fix: duplicate issue for multiple mm in single table

pull/7727/head
mertmit 7 months ago
parent
commit
473681d2e8
  1. 7
      packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts

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

@ -515,6 +515,8 @@ export class ExportService {
if (hasLink) {
linkStream.setEncoding('utf8');
let streamedHeaders = false;
for (const mm of mmColumns) {
if (handledMmList.includes(mm.colOptions?.fk_mm_model_id)) continue;
@ -573,8 +575,11 @@ export class ExportService {
mmOffset,
mmLimit,
mmFields,
true,
streamedHeaders ? false : true,
);
// avoid writing headers for same model multiple times
streamedHeaders = true;
} catch (e) {
this.debugLog(e);
throw e;

Loading…
Cancel
Save