Fixing the previous button of the player

This commit is contained in:
Zoe Roux 2020-10-26 06:25:59 +01:00
parent 81e2f2bbb1
commit a006cc3f9f
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ export interface WatchItem
releaseDate;
isMovie: boolean;
previousEpisode: string;
previousEpisode: Episode;
nextEpisode: Episode;
container: string;

View File

@ -373,7 +373,7 @@ export class PlayerComponent implements OnInit, OnDestroy, AfterViewInit
{
if (this.item.previousEpisode == null)
return;
this.router.navigate(["/watch", this.item.previousEpisode], {
this.router.navigate(["/watch", this.item.previousEpisode.slug], {
queryParamsHandling: "merge"
});
}