Fixed album navigation interfering with filter navigation.

This commit is contained in:
DebaucheryLibrarian 2021-02-05 01:29:53 +01:00
parent bd59bdd215
commit 4ae130a646
2 changed files with 4 additions and 4 deletions

View File

@ -402,9 +402,9 @@ function showAlbum() {
}
async function watchRoute(to, from) {
console.log(to, from);
await this.fetchActor();
if (to.hash !== '#album' && from.hash !== '#album') {
await this.fetchActor();
}
}
async function mounted() {

View File

@ -102,7 +102,7 @@ function showAlbum() {
}
async function watchRoute(to, from) {
if (to.params.pageNumber !== from.params.pageNumber) {
if (to.hash !== '#album' && from.hash !== '#album') {
await this.fetchReleases();
}
}