Browse Source

fix(nocodb): add ?? {} for stack_meta

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

2
packages/nocodb/src/lib/models/KanbanView.ts

@ -75,7 +75,7 @@ export default class KanbanView implements KanbanType {
stack_meta:
typeof body.stack_meta === 'string'
? body.stack_meta
: JSON.stringify(body.stack_meta),
: JSON.stringify(body.stack_meta ?? {}),
};
if (o) {
o = { ...o, ...updateObj };

Loading…
Cancel
Save