Browse Source

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

pull/7304/head
Pranav C 11 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 { import type {
Column, Column,
LinkToAnotherRecordColumn, LinkToAnotherRecordColumn,
@ -149,8 +149,7 @@ const getAst = async ({
if (getHiddenColumn) { if (getHiddenColumn) {
isRequested = isRequested =
!isSystemColumn(col) || !isSystemColumn(col) ||
col.column_name === 'created_at' || (isCreatedTimeOrUpdatedTimeCol(col) && col.system) ||
col.column_name === 'updated_at' ||
col.pk; col.pk;
} else if (allowedCols && (!includePkByDefault || !col.pk)) { } else if (allowedCols && (!includePkByDefault || !col.pk)) {
isRequested = isRequested =

Loading…
Cancel
Save