From 12a1b1653abf7c29ff99879b0081c0de677497a2 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 12 Apr 2023 16:21:16 +0530 Subject: [PATCH] fix: invalid ltar list error(mm) Signed-off-by: Pranav C --- .../datas/data-alias-nested/data-alias-nested.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nocodb-nest/src/modules/datas/data-alias-nested/data-alias-nested.service.ts b/packages/nocodb-nest/src/modules/datas/data-alias-nested/data-alias-nested.service.ts index f4ccf4c3a3..4502ad3427 100644 --- a/packages/nocodb-nest/src/modules/datas/data-alias-nested/data-alias-nested.service.ts +++ b/packages/nocodb-nest/src/modules/datas/data-alias-nested/data-alias-nested.service.ts @@ -31,6 +31,9 @@ export class DataAliasNestedService { const column = await getColumnByIdOrName(param.columnName, model); + if (column.uidt !== UITypes.LinkToAnotherRecord) + NcError.badRequest('Column is not LTAR'); + const data = await baseModel.mmList( { colId: column.id,