Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fixed lint error

Poslovitch5bb2ed6b81cb
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 025c62430c..5530dc8ada 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