X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-watch%2Fcomment%2Fvideo-comments.component.ts;h=f1408effb38ca34f9b903a1b9aae49a3d67302d7;hb=6cb556449064278bdcb1a54a7b980c2e7bc735f0;hp=f2bb5c4648d8996a872e52755179b0a707b1e774;hpb=5db4545cd2af2298ef6514dde2c36edc98ef5e33;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.ts b/client/src/app/videos/+video-watch/comment/video-comments.component.ts index f2bb5c464..f1408effb 100644 --- a/client/src/app/videos/+video-watch/comment/video-comments.component.ts +++ b/client/src/app/videos/+video-watch/comment/video-comments.component.ts @@ -183,7 +183,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy { // Mark the comment as deleted this.softDeleteComment(commentToDelete) - if (this.highlightedThread.id === commentToDelete.id) this.highlightedThread = undefined + if (this.highlightedThread?.id === commentToDelete.id) this.highlightedThread = undefined }, err => this.notifier.error(err.message)