From 4137bab7fc58663f69c2dca4d17db178cb79ab7a Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Sat, 4 Dec 2021 13:56:25 +0000 Subject: [PATCH] fix: Home view (#1129) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1129 Reviewed-by: konrad Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- src/views/Home.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index b0c6c25d1..17eb6b317 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -47,7 +47,6 @@ v-for="(l, k) in listHistory" :key="`l${k}`" :list="l" - :background-resolver="() => null" /> @@ -105,12 +104,8 @@ const migratorsEnabled = computed(() => store.state.config.availableMigrators?.l const userInfo = computed(() => store.state.auth.info) const hasTasks = computed(() => store.state.hasTasks) const defaultListId = computed(() => store.state.auth.defaultListId) -const defaultNamespaceId = computed(() => store.state.namespaces.namespaces?.[0].id || 0) -const hasLists = computed (() => { - return store.state.namespaces.namespaces.length === 0 - ? false - : store.state.namespaces.namespaces[0].lists.length > 0 -}) +const defaultNamespaceId = computed(() => store.state.namespaces.namespaces?.[0]?.id || 0) +const hasLists = computed (() => store.state.namespaces.namespaces?.[0]?.lists.length > 0) const loading = computed(() => store.state.loading && store.state.loadingModule === 'tasks') const deletionScheduledAt = computed(() => parseDateOrNull(store.state.auth.info?.deletionScheduledAt))