|
|
@ -1,5 +1,5 @@ |
|
|
|
import type { LinkToAnotherRecordType, TableType } from 'nocodb-sdk' |
|
|
|
import type { LinkToAnotherRecordType, TableType } from 'nocodb-sdk' |
|
|
|
import { UITypes } from 'nocodb-sdk' |
|
|
|
import { UITypes, isSystemColumn } from 'nocodb-sdk' |
|
|
|
import { |
|
|
|
import { |
|
|
|
Modal, |
|
|
|
Modal, |
|
|
|
SYSTEM_COLUMNS, |
|
|
|
SYSTEM_COLUMNS, |
|
|
@ -84,7 +84,7 @@ export function useTable(onTableCreate?: (tableMeta: TableType) => void, baseId? |
|
|
|
async onOk() { |
|
|
|
async onOk() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const meta = (await getMeta(table.id as string, true)) as TableType |
|
|
|
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) { |
|
|
|
if (relationColumns?.length) { |
|
|
|
const refColMsgs = await Promise.all( |
|
|
|
const refColMsgs = await Promise.all( |
|
|
|