Skip to content

Commit

Permalink
on item pages, fetch item's library data if unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiher committed Jul 30, 2024
1 parent ed70f3a commit 897c3ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/pages/item/_id/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 897c3ea

Please sign in to comment.