Browse Source

fix: extract created/lastModified system field by default if viewId/field param missing

pull/7304/head
Pranav C 9 months ago
parent
commit
11f3845923
  1. 5
      packages/nocodb/src/helpers/getAst.ts

5
packages/nocodb/src/helpers/getAst.ts

@ -1,4 +1,4 @@
import { isSystemColumn, RelationTypes, UITypes, ViewTypes } from 'nocodb-sdk';
import { isCreatedTimeOrUpdatedTimeCol, isSystemColumn, RelationTypes, UITypes, ViewTypes } from 'nocodb-sdk'
import type {
Column,
LinkToAnotherRecordColumn,
@ -149,8 +149,7 @@ const getAst = async ({
if (getHiddenColumn) {
isRequested =
!isSystemColumn(col) ||
col.column_name === 'created_at' ||
col.column_name === 'updated_at' ||
(isCreatedTimeOrUpdatedTimeCol(col) && col.system) ||
col.pk;
} else if (allowedCols && (!includePkByDefault || !col.pk)) {
isRequested =

Loading…
Cancel
Save