diff --git a/packages/nc-gui/composables/useTable.ts b/packages/nc-gui/composables/useTable.ts index 6b9368c0c3..c6638a3b8a 100644 --- a/packages/nc-gui/composables/useTable.ts +++ b/packages/nc-gui/composables/useTable.ts @@ -1,5 +1,5 @@ import type { LinkToAnotherRecordType, TableType } from 'nocodb-sdk' -import { UITypes } from 'nocodb-sdk' +import { UITypes, isSystemColumn } from 'nocodb-sdk' import { Modal, SYSTEM_COLUMNS, @@ -84,7 +84,7 @@ export function useTable(onTableCreate?: (tableMeta: TableType) => void, baseId? async onOk() { try { const meta = (await getMeta(table.id as string, true)) as TableType - const relationColumns = meta?.columns?.filter((c) => c.uidt === UITypes.LinkToAnotherRecord) + const relationColumns = meta?.columns?.filter((c) => c.uidt === UITypes.LinkToAnotherRecord && !isSystemColumn(c)) if (relationColumns?.length) { const refColMsgs = await Promise.all(