From 290c4d0e7b486be130d26e2e0c766051b903c59b Mon Sep 17 00:00:00 2001 From: Daniel Herrmann Date: Sun, 3 Mar 2024 09:20:35 +0100 Subject: [PATCH] fix: do not use computed outside of components... --- frontend/src/router/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 899e22dd6..54d3ae65b 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -1,4 +1,3 @@ -import {computed} from 'vue' import { createRouter, createWebHistory } from 'vue-router' import type { RouteLocation } from 'vue-router' import {saveLastVisited} from '@/helpers/saveLastVisited' @@ -353,14 +352,13 @@ const router = createRouter({ // Project default view const configStore = useConfigStore() - const defaultProjectView = computed(() => configStore.defaultProjectView) if (savedProjectView) { console.log('Replaced list view with', savedProjectView) } return { - name: savedProjectView || defaultProjectView, + name: savedProjectView || configStore.defaultProjectView, params: {projectId: to.params.projectId}, } },