mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
on item pages, fetch item's library data if unavailable
This commit is contained in:
parent
ed70f3af83
commit
897c3ea625
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user