fix: load the list tasks only after the list itself was loaded #1251
|
@ -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)
|
||||
|
|
Reference in New Issue
Block a user