mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-08 13:55:28 +02:00
Replace setCurrentLibrary calls with fetch to ensure filterData matches library
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user