From 9c67c43e434930b20f27ab534f181004dfaf009a Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 25 Sep 2023 11:39:09 +0530 Subject: [PATCH] refactor: provide a better var name Signed-off-by: Pranav C --- packages/nocodb/src/db/BaseModelSqlv2.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts index 95eef28080..3da24301d4 100644 --- a/packages/nocodb/src/db/BaseModelSqlv2.ts +++ b/packages/nocodb/src/db/BaseModelSqlv2.ts @@ -1538,7 +1538,6 @@ class BaseModelSqlv2 { this._columns[column.title] = column; const colOptions = (await column.getColOptions()) as LinkToAnotherRecordColumn; - // const parentColumn = await colOptions.getParentColumn(); if (colOptions?.type === 'hm') { const listLoader = new DataLoader(async (ids: string[]) => { @@ -1676,8 +1675,8 @@ class BaseModelSqlv2 { true, ); - const gs = groupBy(data, pCol.title); - return _ids.map(async (id: string) => gs?.[id]?.[0]); + const groupedList = groupBy(data, pCol.title); + return _ids.map(async (id: string) => groupedList?.[id]?.[0]); }); // defining HasMany count method within GQL Type class