Browse Source

fix: hide system relation column from LTAR popup

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4866/head
mertmit 2 years ago
parent
commit
5b4b45ae76
  1. 4
      packages/nc-gui/composables/useTable.ts

4
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(

Loading…
Cancel
Save