Added various conditions to prevent errors and warnings.

This commit is contained in:
DebaucheryLibrarian
2021-03-04 02:35:43 +01:00
parent 0c98df232e
commit fa30fe5169
7 changed files with 37 additions and 14 deletions

View File

@@ -363,6 +363,7 @@
<Pagination
:items-total="totalCount"
:items-per-page="limit"
name="actorRange"
class="pagination-top"
/>
</div>
@@ -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();
}
}