Browse Source

chore(gui-v2): check if params exist before calling

pull/3023/head
braks 2 years ago
parent
commit
a74661861f
  1. 4
      packages/nc-gui-v2/components/dashboard/TreeView.vue

4
packages/nc-gui-v2/components/dashboard/TreeView.vue

@ -188,7 +188,7 @@ const addTableTab = (table: TableType) => {
:class="[
{ hidden: !filteredTables?.includes(table) },
`nc-project-tree-tbl nc-project-tree-tbl-${table.title}`,
route.params.title.includes(table.title) ? 'bg-blue-500/15' : '',
route.params.title && route.params.title.includes(table.title) ? 'bg-blue-500/15' : '',
]"
class="pl-5 pr-3 py-2 text-sm cursor-pointer group"
:data-order="table.order"
@ -205,7 +205,7 @@ const addTableTab = (table: TableType) => {
<component
:is="icon(table)"
:class="route.params.title.includes(table.title) ? 'text-pink-500' : 'text-gray-500'"
:class="route.params.title && route.params.title.includes(table.title) ? 'text-pink-500' : 'text-gray-500'"
class="nc-view-icon group-hover:hidden text-xs"
/>
</div>

Loading…
Cancel
Save