aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentContentsView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-10-19 13:49:20 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-10-19 13:49:20 -0400
commit3d910bae8771e67cabc1500c49b77d425fdf62e9 (patch)
tree49448397feaacfed75be0e45ab4d9c254d3d5cf6 /src/client/views/nodes/DocumentContentsView.tsx
parent1a3f820a38a12b13e947f58b4b7459ed84c4f70b (diff)
cleaned up a bunch layout vs doc issues related to templates
Diffstat (limited to 'src/client/views/nodes/DocumentContentsView.tsx')
-rw-r--r--src/client/views/nodes/DocumentContentsView.tsx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/views/nodes/DocumentContentsView.tsx b/src/client/views/nodes/DocumentContentsView.tsx
index d375405b9..bb9315ca3 100644
--- a/src/client/views/nodes/DocumentContentsView.tsx
+++ b/src/client/views/nodes/DocumentContentsView.tsx
@@ -77,11 +77,7 @@ export class DocumentContentsView extends React.Component<DocumentViewProps & {
}
return this.props.DataDoc;
}
- get layoutDoc() {
- // if this document's layout field contains a document (ie, a rendering template), then we will use that
- // to determine the render JSX string, otherwise the layout field should directly contain a JSX layout string.
- return this.props.Document.layout instanceof Doc ? this.props.Document.layout : this.props.Document;
- }
+ get layoutDoc() { return Doc.Layout(this.props.Document); }
CreateBindings(): JsxBindings {
let list = {