diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-06-21 09:18:45 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-06-21 09:18:45 -0400 |
commit | cccc43c64a749e34a993e32f8616ac7e0532c7d9 (patch) | |
tree | 35a804b50f19d6557901ad3d358e620946c5735e /src/client/views/nodes/FormattedTextBox.tsx | |
parent | ce54e04c09ee0f7549d436f6ffe1f9f9b9efd7b5 (diff) |
more templating fixes.
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 92835ba39..f59af226d 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -104,7 +104,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe } } - @computed get dataDoc() { return this.props.DataDoc ? this.props.DataDoc : this.props.Document; } + @computed get dataDoc() { return this.props.DataDoc && BoolCast(this.props.Document.isTemplate) ? this.props.DataDoc : this.props.Document; } dispatchTransaction = (tx: Transaction) => { if (this._editorView) { |