From fc6201613079cef2c3f6773e8238dfa900ebd85d Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 26 Dec 2021 18:49:56 +0100 Subject: [PATCH] fix: replacing list view --- src/views/list/ShowList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/list/ShowList.vue b/src/views/list/ShowList.vue index ec02d7dc1..56c8831fc 100644 --- a/src/views/list/ShowList.vue +++ b/src/views/list/ShowList.vue @@ -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)