From 8dfbd1cc59f2579830406314051a25c35193e430 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 1 Jul 2017 18:40:46 -0700 Subject: [PATCH] Fixed: Bad layout on multiple nested docs --- .../Layout/components/SidebarCollection/SidebarCollection.js | 2 +- frontend/scenes/Document/Document.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/Layout/components/SidebarCollection/SidebarCollection.js b/frontend/components/Layout/components/SidebarCollection/SidebarCollection.js index 2ca591be2..ec197e6c3 100644 --- a/frontend/components/Layout/components/SidebarCollection/SidebarCollection.js +++ b/frontend/components/Layout/components/SidebarCollection/SidebarCollection.js @@ -28,7 +28,7 @@ class SidebarCollection extends React.Component { {(document.pathToDocument.includes(doc.id) || document.id === doc.id) && - + {doc.children && this.renderDocuments(doc.children)} } diff --git a/frontend/scenes/Document/Document.js b/frontend/scenes/Document/Document.js index 275ba0429..b606de365 100644 --- a/frontend/scenes/Document/Document.js +++ b/frontend/scenes/Document/Document.js @@ -119,7 +119,7 @@ type Props = { render() { const isNew = this.props.newDocument || this.props.newChildDocument; const isEditing = this.props.match.params.edit; - const isFetching = !this.document && get(this.document, 'isFetching'); + const isFetching = !this.document; const titleText = get(this.document, 'title', 'Loading'); return (