Expose child document in sidebar

This commit is contained in:
Jori Lallo
2017-06-25 16:26:28 -07:00
parent c0d89be516
commit 42d646c16f
5 changed files with 53 additions and 24 deletions

View File

@ -59,7 +59,7 @@ type Props = {
};
render() {
const { user, auth, ui, collections } = this.props;
const { user, auth, ui } = this.props;
return (
<Container column auto>
@ -112,7 +112,8 @@ type Props = {
<LinkSection>
{ui.activeCollection
? <SidebarCollection
collection={collections.getById(ui.activeCollection)}
document={ui.activeDocument}
collection={ui.activeCollection}
/>
: <SidebarCollectionList />}
</LinkSection>