From 5bb2ed6b81cb49fac8737e1f1aa5e26e620e9c87 Mon Sep 17 00:00:00 2001 From: Poslovitch Date: Sat, 24 Apr 2021 14:01:36 +0000 Subject: Fixed lint error --- client/src/app/+videos/+video-watch/video-watch.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts index 025c62430..5530dc8ad 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts @@ -848,8 +848,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy { } // Only set this if we're in a playlist - if (this.playlist) options.common.previousVideo = () => { - this.zone.run(() => this.videoWatchPlaylist.navigateToPreviousPlaylistVideo()) + if (this.playlist) { + options.common.previousVideo = () => { + this.zone.run(() => this.videoWatchPlaylist.navigateToPreviousPlaylistVideo()) + } } let mode: PlayerMode -- cgit v1.2.3