diff --git a/packages/nc-gui/components/erd/TableNode.vue b/packages/nc-gui/components/erd/TableNode.vue index 067719679b..99b08acbcd 100644 --- a/packages/nc-gui/components/erd/TableNode.vue +++ b/packages/nc-gui/components/erd/TableNode.vue @@ -3,7 +3,7 @@ import type { NodeProps } from '@vue-flow/core' import { Handle, Position } from '@vue-flow/core' import type { ColumnType, LinkToAnotherRecordType, TableType } from 'nocodb-sdk' import { UITypes, isVirtualCol } from 'nocodb-sdk' -import { MetaInj, provide, toRef, useNuxtApp } from '#imports' +import { MetaInj, computed, provide, toRef, useNuxtApp } from '#imports' interface NodeData { table: TableType @@ -29,6 +29,8 @@ const { $e } = useNuxtApp() const relatedColumnId = (colOptions: LinkToAnotherRecordType | any) => colOptions.type === 'mm' ? colOptions.fk_parent_column_id : colOptions.fk_child_column_id + +const hasColumns = computed(() => data.pkAndFkColumns.length || data.nonPkColumns.length)