diff options
author | bob <bcz@cs.brown.edu> | 2019-07-10 18:51:44 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-07-10 18:51:44 -0400 |
commit | 1864c73573cd7129c8e6994842ad4d442d959c46 (patch) | |
tree | f489617a227c7fae0076347bb216f8d1dec45f25 /src/client/views/nodes/DocumentView.tsx | |
parent | 63cb729640fb9c1a027c6c6008766f336dad2185 (diff) |
fixed some field extension and templating things so that text templates can be used within templates.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index b8e8e7afe..0da6ed02e 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -605,7 +605,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu if (str.indexOf("fieldKey={\"caption\"}") !== -1) showCaption = "caption"; }); } - let showTextTitle = showTitle && StrCast(this.props.Document.layout).startsWith("<FormattedTextBox") ? showTitle : undefined; + let showTextTitle = showTitle && StrCast(this.props.Document.layout).startsWith("<FormattedTextBox") || (this.props.Document.layout instanceof Doc && StrCast(this.props.Document.layout.layout).startsWith("<FormattedTextBox")) ? showTitle : undefined; return ( <div className={`documentView-node${this.topMost ? "-topmost" : ""}`} ref={this._mainCont} |