diff options
author | bob <bcz@cs.brown.edu> | 2019-06-25 09:35:09 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-25 09:35:09 -0400 |
commit | 45ded4da2592bc2a8201e1260dfb6a80485684c7 (patch) | |
tree | 47cd5a7e031ae9535f4926e74b10bd24266b78d9 /src/client/views/nodes/DocumentContentsView.tsx | |
parent | 66acf0237f2e1fe74660e5c2a035757403f79f8b (diff) |
converted isTopMost into renderDepth and capped renderDepth at 7. removed previous cycle detection.
Diffstat (limited to 'src/client/views/nodes/DocumentContentsView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentContentsView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentContentsView.tsx b/src/client/views/nodes/DocumentContentsView.tsx index a4316c143..0da4888a1 100644 --- a/src/client/views/nodes/DocumentContentsView.tsx +++ b/src/client/views/nodes/DocumentContentsView.tsx @@ -103,6 +103,7 @@ export class DocumentContentsView extends React.Component<DocumentViewProps & { } render() { + if (this.props.renderDepth > 7) return (null); if (!this.layout && (this.props.layoutKey !== "overlayLayout" || !this.templates.length)) return (null); return <ObserverJsxParser components={{ FormattedTextBox, ImageBox, IconBox, FieldView, CollectionFreeFormView, CollectionDockingView, CollectionSchemaView, CollectionView, CollectionPDFView, CollectionVideoView, WebBox, KeyValueBox, PDFBox, VideoBox, AudioBox, HistogramBox }} |