fix: replacing list view
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
faf8f2b1a5
commit
fc62016130
|
@ -96,7 +96,6 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.listLoaded = 0
|
|
||||||
const listData = {id: parseInt(this.$route.params.listId)}
|
const listData = {id: parseInt(this.$route.params.listId)}
|
||||||
|
|
||||||
saveListToHistory(listData)
|
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)
|
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
|
// 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)
|
const listFromStore = this.$store.getters['lists/getListById'](listData.id)
|
||||||
if (listFromStore !== null) {
|
if (listFromStore !== null) {
|
||||||
this.$store.commit(BACKGROUND, null)
|
this.$store.commit(BACKGROUND, null)
|
||||||
|
|
Reference in New Issue