From 2e537f6d63690724fb83b31107ddf3e34f63edba Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 2 Apr 2022 12:47:13 +0200 Subject: [PATCH] fix: loading list views would sometimes not get loaded To make sure the tasks of a list are only loaded after the list itself is fetched from the server, we hide the list view until the list is fully loaded. When switching between different views of the same list, this would cause the list view to not be loaded at all because the list was already loaded at that point. closes #1732 --- src/views/list/ListWrapper.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/list/ListWrapper.vue b/src/views/list/ListWrapper.vue index 0f1f94819..1153dc7e6 100644 --- a/src/views/list/ListWrapper.vue +++ b/src/views/list/ListWrapper.vue @@ -134,12 +134,13 @@ async function loadList(listIdToLoad: number) { ) && typeof currentList.value !== 'undefined' && currentList.value.maxRight !== null ) { + loadedListId.value = props.listId return } console.debug(`Loading list, props.viewName = ${props.viewName}, $route.params =`, route.params, `, loadedListId = ${loadedListId.value}, currentList = `, currentList.value) - // Put set the current list to the one we're about to load so that the title is already shown at the top + // Set the current list to the one we're about to load so that the title is already shown at the top loadedListId.value = 0 const listFromStore = store.getters['lists/getListById'](listData.id) if (listFromStore !== null) {