Browse Source

feat(nc-gui): ERD individual table view fixed for a mm table

pull/3612/head
Muhammed Mustafa 2 years ago
parent
commit
4d5496d1f8
  1. 10
      packages/nc-gui/components/erd/View.vue

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

@ -53,8 +53,14 @@ onMounted(async () => {
const tablesFilteredWithConfig = computed(() =>
tables.value
.filter((table) => config.value.showMMTables || (!config.value.showMMTables && !table.mm))
.filter((table) => (!config.value.showViews && table.type !== 'view') || config.value.showViews),
.filter(
(t) =>
config.value.showMMTables ||
(!config.value.showMMTables && !t.mm) ||
// Show mm table if its the selected table
t.id === table?.id,
)
.filter((t) => (!config.value.showViews && t.type !== 'view') || config.value.showViews),
)
watch(

Loading…
Cancel
Save