fix: replacing list view
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2021-12-26 18:49:56 +01:00
parent faf8f2b1a5
commit fc62016130
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

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)