From fa30fe51693b86fe87790eb78242e6c31290bae4 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Thu, 4 Mar 2021 02:35:43 +0100 Subject: [PATCH] Added various conditions to prevent errors and warnings. --- assets/components/actors/actor.vue | 3 ++- assets/components/actors/actors.vue | 15 ++++++++++---- assets/components/home/home.vue | 2 +- assets/components/pagination/pagination.vue | 22 ++++++++++++++------- assets/components/releases/banner.vue | 1 + assets/components/releases/release.vue | 4 +++- assets/js/actors/actions.js | 4 ++++ 7 files changed, 37 insertions(+), 14 deletions(-) diff --git a/assets/components/actors/actor.vue b/assets/components/actors/actor.vue index c858ea09..b8e4c98b 100644 --- a/assets/components/actors/actor.vue +++ b/assets/components/actors/actor.vue @@ -363,6 +363,7 @@ @@ -409,7 +410,7 @@ function showAlbum() { } async function watchRoute(to, from) { - if (to.hash !== '#album' && from.hash !== '#album') { + if ((to.name === 'actor' || to.name === 'actorRange') && to.hash !== '#album' && from.hash !== '#album') { await this.fetchActor(); } } diff --git a/assets/components/actors/actors.vue b/assets/components/actors/actors.vue index c9bfdb6c..31ab1600 100644 --- a/assets/components/actors/actors.vue +++ b/assets/components/actors/actors.vue @@ -1,6 +1,9 @@