mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix console error when rewriting a comment
This commit is contained in:
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
Block a user