Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: iterate cols first

mertmit1d40241efc13
diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts
index 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 update
if (!(col.title in d)) continue;