Browse Source

fix: missing Links column in swagger child api param list

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/6349/head
Pranav C 1 year ago
parent
commit
b60b88fd0a
  1. 4
      packages/nocodb/src/services/api-docs/swagger/templates/params.ts

4
packages/nocodb/src/services/api-docs/swagger/templates/params.ts

@ -1,4 +1,4 @@
import { RelationTypes, UITypes } from 'nocodb-sdk';
import { isLinksOrLTAR, RelationTypes, UITypes } from 'nocodb-sdk'
import type { LinkToAnotherRecordColumn } from '~/models';
import type { SwaggerColumn } from '../getSwaggerColumnMetas';
@ -100,7 +100,7 @@ export const columnNameQueryParam = {
export const columnNameParam = (columns: SwaggerColumn[]) => {
const columnNames = [];
for (const { column } of columns) {
if (column.uidt !== UITypes.LinkToAnotherRecord || column.system) continue;
if (isLinksOrLTAR(column) || column.system) continue;
columnNames.push(column.title);
}

Loading…
Cancel
Save