Browse Source

Merge pull request #4866 from nocodb/fix/hide-mm-modal

fix: hide system relation column from LTAR popup
pull/4891/head
mertmit 2 years ago committed by GitHub
parent
commit
1ba7cd71a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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