From 006241163bed025e33bdebbd23aa285de1570599 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 30 Jul 2024 16:35:26 -0500 Subject: [PATCH] Replace setCurrentLibrary calls with fetch to ensure filterData matches library --- client/pages/author/_id.vue | 4 ++-- .../_library/podcast/download-queue.vue | 20 +++++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/client/pages/author/_id.vue b/client/pages/author/_id.vue index 4630c822..0618f8a7 100644 --- a/client/pages/author/_id.vue +++ b/client/pages/author/_id.vue @@ -56,8 +56,8 @@ export default { return redirect(`/library/${store.state.libraries.currentLibraryId}/authors`) } - if (query.library) { - store.commit('libraries/setCurrentLibrary', query.library) + if (store.state.libraries.currentLibraryId !== author.libraryId || !store.state.libraries.filterData) { + await store.dispatch('libraries/fetch', author.libraryId) } return { diff --git a/client/pages/library/_library/podcast/download-queue.vue b/client/pages/library/_library/podcast/download-queue.vue index dd57748d..49b4d4da 100644 --- a/client/pages/library/_library/podcast/download-queue.vue +++ b/client/pages/library/_library/podcast/download-queue.vue @@ -54,11 +54,19 @@