fix: defaultListId

This commit is contained in:
Dominik Pschenitschni 2022-08-16 20:18:42 +02:00
parent b4cba6f7d9
commit 878b5bf236
No known key found for this signature in database
GPG key ID: B257AC0149F43A77

View file

@ -89,7 +89,7 @@ const listHistory = computed(() => {
const migratorsEnabled = computed(() => store.state.config.availableMigrators?.length > 0) const migratorsEnabled = computed(() => store.state.config.availableMigrators?.length > 0)
const userInfo = computed(() => store.state.auth.info) const userInfo = computed(() => store.state.auth.info)
const hasTasks = computed(() => store.state.hasTasks) const hasTasks = computed(() => store.state.hasTasks)
const defaultListId = computed(() => store.state.auth.defaultListId) const defaultListId = computed(() => store.state.auth.settings.defaultListId)
const defaultNamespaceId = computed(() => store.state.namespaces.namespaces?.[0]?.id || 0) const defaultNamespaceId = computed(() => store.state.namespaces.namespaces?.[0]?.id || 0)
const hasLists = computed(() => store.state.namespaces.namespaces?.[0]?.lists.length > 0) const hasLists = computed(() => store.state.namespaces.namespaces?.[0]?.lists.length > 0)
const loading = computed(() => store.state.loading && store.state.loadingModule === 'tasks') const loading = computed(() => store.state.loading && store.state.loadingModule === 'tasks')