diff --git a/client/pages/author/_id.vue b/client/pages/author/_id.vue index 4630c822f2..0618f8a765 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/item/_id/index.vue b/client/pages/item/_id/index.vue index 35b1f51880..416b0e08b7 100644 --- a/client/pages/item/_id/index.vue +++ b/client/pages/item/_id/index.vue @@ -168,6 +168,9 @@ export default { console.error('No item...', params.id) return redirect('/') } + if (store.state.libraries.currentLibraryId !== item.libraryId || !store.state.libraries.filterData) { + await store.dispatch('libraries/fetch', item.libraryId) + } return { libraryItem: item, rssFeed: item.rssFeed || null, @@ -791,10 +794,6 @@ export default { this.episodeDownloadsQueued = this.libraryItem.episodeDownloadsQueued || [] this.episodesDownloading = this.libraryItem.episodesDownloading || [] - // use this items library id as the current - if (this.libraryId) { - this.$store.commit('libraries/setCurrentLibrary', this.libraryId) - } this.$eventBus.$on(`${this.libraryItem.id}_updated`, this.libraryItemUpdated) this.$root.socket.on('item_updated', this.libraryItemUpdated) this.$root.socket.on('rss_feed_open', this.rssFeedOpen) diff --git a/client/pages/library/_library/podcast/download-queue.vue b/client/pages/library/_library/podcast/download-queue.vue index dd57748dbc..49b4d4da69 100644 --- a/client/pages/library/_library/podcast/download-queue.vue +++ b/client/pages/library/_library/podcast/download-queue.vue @@ -54,11 +54,19 @@