Browse Source

fix: invalid ltar list error(mm)

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
12a1b1653a
  1. 3
      packages/nocodb-nest/src/modules/datas/data-alias-nested/data-alias-nested.service.ts

3
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); const column = await getColumnByIdOrName(param.columnName, model);
if (column.uidt !== UITypes.LinkToAnotherRecord)
NcError.badRequest('Column is not LTAR');
const data = await baseModel.mmList( const data = await baseModel.mmList(
{ {
colId: column.id, colId: column.id,

Loading…
Cancel
Save