From 2bee197f29c1396ec56c965541839575fbe3cd1c Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 20 Feb 2023 22:13:26 +0800 Subject: [PATCH] fix(nocodb): apply !!insertObj.mm even undefined --- packages/nocodb/src/lib/models/Model.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/nocodb/src/lib/models/Model.ts b/packages/nocodb/src/lib/models/Model.ts index 4e937d14b6..2412d6259d 100644 --- a/packages/nocodb/src/lib/models/Model.ts +++ b/packages/nocodb/src/lib/models/Model.ts @@ -114,9 +114,7 @@ export default class Model implements TableType { 'id', ]); - if (insertObj.mm) { - insertObj.mm = !!insertObj.mm; - } + insertObj.mm = !!insertObj.mm; if (!insertObj.order) { insertObj.order = await ncMeta.metaGetNextOrder(