Skip to content

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

Fix console error when rewriting a comment

Chocobozzz5982ffc4b5c9
diff --git a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts
index c926d8d700..78efe16843 100644
--- a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts
+++ b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts
@@ -88,6 +88,9 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
}
ngOnChanges (changes: SimpleChanges) {
+ // Not initialized yet
+ if (!this.form) return
+
if (changes.textValue && changes.textValue.currentValue && changes.textValue.currentValue !== changes.textValue.previousValue) {
this.patchTextValue(changes.textValue.currentValue, true)
}