From: Poslovitch Date: Sat, 24 Apr 2021 14:01:36 +0000 (+0000) Subject: Fixed lint error X-Git-Tag: v3.2.0-rc.1~116 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=5bb2ed6b81cb49fac8737e1f1aa5e26e620e9c87;p=github%2FChocobozzz%2FPeerTube.git Fixed lint error --- 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