diff options
author | bob <bcz@cs.brown.edu> | 2019-12-18 13:50:43 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-12-18 13:50:43 -0500 |
commit | 1747cddb45769bd61b8794ca3681bb393d06725d (patch) | |
tree | 8f3781c3b5dab7b4171546ea82a7bfb3d51977b2 /src | |
parent | 2e94227500e8b9028a1e6723379547dfe7d33485 (diff) |
render fix?
Diffstat (limited to 'src')
-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 8d3c3126d..0753ad632 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -723,7 +723,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu } render() { - if (!this.props.Document) return (null); + if (!(this.props.Document instanceof Doc)) return (null); const ruleColor = this.props.ruleProvider ? StrCast(this.props.ruleProvider["ruleColor_" + this.Document.heading]) : undefined; const ruleRounding = this.props.ruleProvider ? StrCast(this.props.ruleProvider["ruleRounding_" + this.Document.heading]) : undefined; const colorSet = this.setsLayoutProp("backgroundColor"); |