From a6308ef3faaf02920d52f00d3312ee308ead76c6 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 10 Jun 2023 14:34:12 +0530 Subject: [PATCH] fix: create rollup(Links) based on uidt Signed-off-by: Pranav C --- .../nocodb/src/services/columns.service.ts | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/nocodb/src/services/columns.service.ts b/packages/nocodb/src/services/columns.service.ts index 5161bf8ba7..489c66d4cd 100644 --- a/packages/nocodb/src/services/columns.service.ts +++ b/packages/nocodb/src/services/columns.service.ts @@ -1832,15 +1832,17 @@ export class ColumnsService { virtual: (param.column as LinkToAnotherColumnReqType).virtual, }); - await populateRollupForLTAR({ - column: col1, - // columnMeta: param.column['meta'], - }); - await populateRollupForLTAR({ - column: col2, - columnMeta: param.column['meta'], - alias: param.column.title, - }); + if (isLinks) { + await populateRollupForLTAR({ + column: col1, + // columnMeta: param.column['meta'], + }); + await populateRollupForLTAR({ + column: col2, + columnMeta: param.column['meta'], + alias: param.column.title, + }); + } // todo: create index for virtual relations as well // create index for foreign key in pg