mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-25 21:29:37 +00:00
Replace setCurrentLibrary calls with fetch to ensure filterData matches library
This commit is contained in:
parent
03818fadee
commit
006241163b
2 changed files with 14 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue