on item pages, fetch item's library data if unavailable

This commit is contained in:
mikiher 2024-07-30 20:02:03 +03:00
parent ed70f3af83
commit 897c3ea625

View File

@ -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,