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