Fixed: Bad layout on multiple nested docs

This commit is contained in:
Tom Moor
2017-07-01 18:40:46 -07:00
parent 6425450617
commit 8dfbd1cc59
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class SidebarCollection extends React.Component {
</SidebarLink>
{(document.pathToDocument.includes(doc.id) ||
document.id === doc.id) &&
<Children>
<Children column>
{doc.children && this.renderDocuments(doc.children)}
</Children>}
</Flex>

View File

@@ -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 (