Browse Source

fix: extract as title

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/7649/head
Pranav C 7 months ago
parent
commit
fb722a5037
  1. 7
      packages/nocodb/src/db/BaseModelSqlv2.ts

7
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -2912,12 +2912,13 @@ class BaseModelSqlv2 {
// generate object with ai column and rest of the primary keys
const pkObj = {};
for (const pk of this.model.primaryKeys) {
const key = pk.id;
if (ai && pk.id === ai.id) {
pkObj[pk.id] = rowId;
pkObj[key] = rowId;
} else if (ag && pk.id === ag.id) {
pkObj[pk.id] = rowId;
pkObj[key] = rowId;
} else {
pkObj[pk.id] = insertObj[pk.column_name] ?? null;
pkObj[key] = insertObj[pk.column_name] ?? null;
}
}
rowId = pkObj;

Loading…
Cancel
Save