mirror of https://github.com/Chocobozzz/PeerTube
Fix console error when rewriting a comment
parent
2f6a237f30
commit
5982ffc4b5
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue