fix: load the list tasks only after the list itself was loaded #1251

Merged
konrad merged 7 commits from fix/load-list-first into main 2022-03-27 19:56:57 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit fc62016130 - Show all commits

View File

@ -96,7 +96,6 @@ export default {
return
}
this.listLoaded = 0
const listData = {id: parseInt(this.$route.params.listId)}
saveListToHistory(listData)
@ -147,6 +146,7 @@ export default {
console.debug(`Loading list, $route.name = ${this.$route.name}, $route.params =`, this.$route.params, `, listLoaded = ${this.listLoaded}, currentList = `, this.currentList)
// Put set the current list to the one we're about to load so that the title is already shown at the top
this.listLoaded = 0
const listFromStore = this.$store.getters['lists/getListById'](listData.id)
if (listFromStore !== null) {
this.$store.commit(BACKGROUND, null)