mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-16 09:43:02 +02:00
Fix manage, chapters edit tracks and library stats page not setting the current library properly #4170
This commit is contained in:
@@ -221,6 +221,11 @@ export default {
|
||||
return redirect('/')
|
||||
}
|
||||
|
||||
// Fetch and set library if this items library does not match the current
|
||||
if (store.state.libraries.currentLibraryId !== libraryItem.libraryId || !store.state.libraries.filterData) {
|
||||
await store.dispatch('libraries/fetch', libraryItem.libraryId)
|
||||
}
|
||||
|
||||
var previousRoute = from ? from.fullPath : null
|
||||
if (from && from.path === '/login') previousRoute = null
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user