Verified Commit 5982ffc4 authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix console error when rewriting a comment

parent 2f6a237f
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment