Browse Source

fix(nc-gui): Only hide nc generate m2m column names

pull/6565/head
Muhammed Mustafa 1 year ago
parent
commit
a48bdc6dab
  1. 2
      packages/nc-gui/components/erd/TableNode.vue
  2. 2
      packages/nc-gui/components/erd/View.vue

2
packages/nc-gui/components/erd/TableNode.vue

@ -32,7 +32,7 @@ const hasColumns = computed(() => data.pkAndFkColumns.length || data.nonPkColumn
const nonPkColumns = computed(() =>
data.nonPkColumns
// Removed MM system column from the table node
.filter((col) => !(col.system && isLinksOrLTAR(col))),
.filter((col) => !(col.system && isLinksOrLTAR(col) && /nc_.*___nc_m2m_.*/.test(col.title!))),
)
watch(

2
packages/nc-gui/components/erd/View.vue

@ -19,7 +19,7 @@ const props = defineProps({
},
baseId: {
type: String,
default: '',
default: undefined,
},
})

Loading…
Cancel
Save