From 422c9c46ed22a2086eeb9e729ee8576f433e51ed Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 27 Jul 2024 13:04:16 +0000 Subject: [PATCH] fix: use same key while grouping insert records --- packages/nocodb/src/models/Column.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nocodb/src/models/Column.ts b/packages/nocodb/src/models/Column.ts index 10eccbda80..c0d9053e4e 100644 --- a/packages/nocodb/src/models/Column.ts +++ b/packages/nocodb/src/models/Column.ts @@ -1565,13 +1565,13 @@ export default class Column implements ColumnType { const insertGroups = new Map[]>(); for (const column of columns) { - let insertArr = insertGroups.get( + const groupKey = column.uidt === UITypes.MultiSelect ? UITypes.SingleSelect - : column.uidt, - ); + : column.uidt; + let insertArr = insertGroups.get(groupKey); if (!insertArr) { - insertGroups.set(column.uidt, (insertArr = [])); + insertGroups.set(groupKey, (insertArr = [])); } switch (column.uidt || column.ui_data_type) { case UITypes.Lookup: