π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: iterate cols first
mertmit1d40241efc13
diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.tsindex 1b133cb8d4..03724a3a5e 100644--- a/packages/nocodb/src/db/BaseModelSqlv2.ts+++ b/packages/nocodb/src/db/BaseModelSqlv2.ts@@ -3156,12 +3156,12 @@ class BaseModelSqlv2 implements IBaseModelSqlV2 {});try {- for (const d of datas) {- const rowId = this.extractPksValues(d, true);+ for (const col of this.model.columns) {+ // skip if not LTAR or Links+ if (!isLinksOrLTAR(col)) continue;- for (const col of this.model.columns) {- // skip if not LTAR or Links- if (!isLinksOrLTAR(col)) continue;+ for (const d of datas) {+ const rowId = this.extractPksValues(d, true);// skip if value is not part of the updateif (!(col.title in d)) continue;