Browse Source

refactor(nocodb): stringify if input is object

pull/5168/head
Wing-Kam Wong 2 years ago
parent
commit
360631e2aa
  1. 7
      packages/nocodb/src/lib/models/KanbanView.ts

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

@ -108,11 +108,8 @@ export default class KanbanView implements KanbanType {
'meta', 'meta',
]); ]);
if (updateObj.meta) { if (updateObj.meta && typeof updateObj.meta === 'object') {
updateObj.meta = updateObj.meta = JSON.stringify(updateObj.meta ?? {});
typeof updateObj.meta === 'string'
? updateObj.meta
: JSON.stringify(updateObj.meta ?? {});
} }
if (o) { if (o) {

Loading…
Cancel
Save