Browse Source

fix(nocodb): empty update object in kanban

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
cefc0dca32
  1. 5
      packages/nocodb/src/lib/models/Model.ts

5
packages/nocodb/src/lib/models/Model.ts

@ -404,7 +404,10 @@ export default class Model implements TableType {
const insertObj = {};
for (const col of await this.getColumns()) {
if (isVirtualCol(col)) continue;
const val = data?.[col.column_name] ?? data?.[col.title];
const val =
data?.[col.column_name] !== undefined
? data?.[col.column_name]
: data?.[col.title];
if (val !== undefined) {
insertObj[sanitize(col.column_name)] = val;
}

Loading…
Cancel
Save