Fix console error when rewriting a comment
This commit is contained in:
parent
2f6a237f30
commit
5982ffc4b5
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,9 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnChanges (changes: SimpleChanges) {
|
ngOnChanges (changes: SimpleChanges) {
|
||||||
|
// Not initialized yet
|
||||||
|
if (!this.form) return
|
||||||
|
|
||||||
if (changes.textValue && changes.textValue.currentValue && changes.textValue.currentValue !== changes.textValue.previousValue) {
|
if (changes.textValue && changes.textValue.currentValue && changes.textValue.currentValue !== changes.textValue.previousValue) {
|
||||||
this.patchTextValue(changes.textValue.currentValue, true)
|
this.patchTextValue(changes.textValue.currentValue, true)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue