Browse Source

refactor: exclude system LTAR query params

pull/6982/head
Pranav C 1 year ago
parent
commit
7c761f9c76
  1. 2
      packages/nocodb/src/services/api-docs/swaggerV2/templates/params.ts

2
packages/nocodb/src/services/api-docs/swaggerV2/templates/params.ts

@ -216,7 +216,7 @@ export const getNestedParams = async (
columns: SwaggerColumn[], columns: SwaggerColumn[],
): Promise<any[]> => { ): Promise<any[]> => {
return await columns.reduce(async (paramsArr, { column }) => { return await columns.reduce(async (paramsArr, { column }) => {
if (column.uidt === UITypes.LinkToAnotherRecord) { if (column.uidt === UITypes.LinkToAnotherRecord && !column.system) {
const colOpt = await column.getColOptions<LinkToAnotherRecordColumn>(); const colOpt = await column.getColOptions<LinkToAnotherRecordColumn>();
if (colOpt.type !== RelationTypes.BELONGS_TO) { if (colOpt.type !== RelationTypes.BELONGS_TO) {
return [ return [

Loading…
Cancel
Save