diff --git a/komga-webui/src/views/Dashboard.vue b/komga-webui/src/views/Dashboard.vue index 4a43feb1d..c9d1484c9 100644 --- a/komga-webui/src/views/Dashboard.vue +++ b/komga-webui/src/views/Dashboard.vue @@ -190,13 +190,9 @@ export default Vue.extend({ selectedBooks(val: BookDto[]) { val.forEach(i => this.replaceBook(i)) }, - }, - beforeRouteUpdate(to, from, next) { - if (to.params.libraryId !== from.params.libraryId) { - this.loadAll(to.params.libraryId) - } - - next() + '$route' (to, from) { + this.loadAll(this.libraryId) + }, }, computed: { fixedCardWidth(): number {