Fixing a small bug with the /genre switcher

This commit is contained in:
Zoe Roux 2020-09-27 19:28:43 +02:00
parent 83473c7ed6
commit f9e88adcc3

View File

@ -69,7 +69,7 @@ export class ItemsGridComponent
else if (query.genres != null)
selectedGenres = query.genres.split(',');
if (this.router.url.startsWith("/genre"))
selectedGenres.push(query.slug);
selectedGenres.push(this.route.snapshot.params.slug);
this.filters.genres = this.genres.filter(x => selectedGenres.includes(x.slug));
}