π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: use Set instead of Map
mertmit74fef1a239e2
diff --git a/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts b/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.tsindex 0c6b9ee3ec..14d74e41bc 100644--- a/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts+++ b/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts@@ -2058,7 +2058,7 @@ export class ImportService {skipDuplicates = false,} = param;- const dataHashMap: Map<string, boolean> = new Map();+ const dataHashSet: Set<string> = new Set();const headers: string[] = [];let chunk = [];@@ -2124,8 +2124,8 @@ export class ImportService {if (skipDuplicates) {// check if the row already existsconst rowHash = hash(row);- if (!dataHashMap.has(rowHash)) {- dataHashMap.set(rowHash, true);+ if (!dataHashSet.has(rowHash)) {+ dataHashSet.add(rowHash);chunk.push(row);}} else {