diff options
| author | bob <bcz@cs.brown.edu> | 2019-10-21 16:38:33 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-10-21 16:38:33 -0400 |
| commit | a27db333f528f7381fda591094aebba684a80639 (patch) | |
| tree | cc4fd0a18574db57863a305b6c57618f19a815a8 /src/client/views/nodes/FormattedTextBox.tsx | |
| parent | 8efea66fd5723becf36dd6e3b2a95435d8528748 (diff) | |
more fixes after removed fieldExt
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
| -rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index b12ca60c9..995fcee17 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -518,7 +518,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe this._textReactionDisposer = reaction( () => this.extensionDoc, () => { - if (this.dataDoc.text || this.dataDoc.lastModified) { + if (this.extensionDoc && (this.dataDoc.text || this.dataDoc.lastModified)) { this.extensionDoc.text = this.dataDoc.text; this.extensionDoc.lastModified = DateCast(this.dataDoc.lastModified)[Copy](); this.dataDoc.text = undefined; |
