diff --git a/frontend/src/components/ViewControls.vue b/frontend/src/components/ViewControls.vue index 1a33112f..4e0efa40 100644 --- a/frontend/src/components/ViewControls.vue +++ b/frontend/src/components/ViewControls.vue @@ -74,11 +74,7 @@ :name="currentView.icon" class="h-4" /> - + + route.params.viewType || 'list') + function getViewType() { - let type = route.params.viewType || 'list' let types = { group_by: { label: __('Group By View'), @@ -328,7 +332,7 @@ function getViewType() { }, } - return types[type] + return types[currentViewType.value] } const currentView = computed(() => {