mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +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)
|
console.error('No item...', params.id)
|
||||||
return redirect('/')
|
return redirect('/')
|
||||||
}
|
}
|
||||||
|
if (store.state.libraries.currentLibraryId !== item.libraryId || !store.state.libraries.filterData) {
|
||||||
|
await store.dispatch('libraries/fetch', item.libraryId)
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
libraryItem: item,
|
libraryItem: item,
|
||||||
rssFeed: item.rssFeed || null,
|
rssFeed: item.rssFeed || null,
|
||||||
|
Loading…
Reference in New Issue
Block a user