1
0

feat: improve types (#2368)

Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2368
Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Co-committed-by: Dominik Pschenitschni <mail@celement.de>
This commit is contained in:
Dominik Pschenitschni
2024-06-12 10:04:26 +00:00
committed by konrad
parent 50d698794b
commit bc897a4503
8 changed files with 30 additions and 31 deletions

View File

@ -23,10 +23,10 @@ const router = useRouter()
const projectStore = useProjectStore()
const authStore = useAuthStore()
const currentView = computed(() => {
const project = projectStore.projects[projectId]
const currentProject = computed(() => projectStore.projects[projectId])
return project?.views.find(v => v.id === viewId)
const currentView = computed(() => {
return currentProject.value?.views.find(v => v.id === viewId)
})
function redirectToDefaultViewIfNecessary() {