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:

committed by
konrad

parent
50d698794b
commit
bc897a4503
@ -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() {
|
||||
|
@ -17,12 +17,12 @@
|
||||
class="teams box"
|
||||
>
|
||||
<li
|
||||
v-for="t in teams"
|
||||
:key="t.id"
|
||||
v-for="team in teams"
|
||||
:key="team.id"
|
||||
>
|
||||
<router-link :to="{name: 'teams.edit', params: {id: t.id}}">
|
||||
<router-link :to="{name: 'teams.edit', params: {id: team.id}}">
|
||||
<p>
|
||||
{{ t.name }}
|
||||
{{ team.name }}
|
||||
</p>
|
||||
</router-link>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user