Browse Source

fix: fix nested hm lookup bug

pull/6987/head
Pranav C 12 months ago
parent
commit
e491326a3a
  1. 4
      packages/nocodb/src/db/generateLookupSelectQuery.ts

4
packages/nocodb/src/db/generateLookupSelectQuery.ts

@ -157,9 +157,9 @@ export default async function generateLookupSelectQuery({
selectQb.join(
`${baseModelSqlv2.getTnPath(
parentModel.table_name,
childModel.table_name,
)} as ${nestedAlias}`,
`${nestedAlias}.${parentColumn.column_name}`,
`${nestedAlias}.${childColumn.column_name}`,
`${prevAlias}.${parentColumn.column_name}`,
);
} else if (relation.type === RelationTypes.MANY_TO_MANY) {

Loading…
Cancel
Save