Fixed issue where categories could not be viewed

This commit is contained in:
Isaac Abadi
2021-06-08 16:32:35 -06:00
parent 4ea239170e
commit 984e990103
3 changed files with 6 additions and 2 deletions

View File

@@ -59,7 +59,9 @@ export class CustomPlaylistsComponent implements OnInit {
this.downloadPlaylist(playlist.id, playlist.name);
} else {
localStorage.setItem('player_navigator', this.router.url);
this.router.navigate(['/player', {playlist_id: playlistID, auto: playlist.auto}]);
const routeParams = {playlist_id: playlistID};
if (playlist.auto) { routeParams['auto'] = playlist.auto; }
this.router.navigate(['/player', routeParams]);
}
} else {
// playlist not found