Fixed: Bad layout on multiple nested docs
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user