Browse Source

fix: update isSystemColumn function

pull/7304/head
Pranav C 9 months ago
parent
commit
31ff7c14a8
  1. 4
      packages/nocodb-sdk/src/lib/helperFunctions.ts

4
packages/nocodb-sdk/src/lib/helperFunctions.ts

@ -16,8 +16,8 @@ const getSystemColumns = (columns) => columns.filter(isSystemColumn) || [];
const isSystemColumn = (col): boolean =>
col &&
(col.uidt === UITypes.ForeignKey ||
col.column_name === 'created_at' ||
col.column_name === 'updated_at' ||
((col.column_name === 'created_at' || col.column_name === 'updated_at') &&
col.uidt === UITypes.DateTime) ||
(col.pk && (col.ai || col.cdf)) ||
(col.pk && col.meta && col.meta.ag) ||
col.system);

Loading…
Cancel
Save