From 826a03c819ab8e2e2ea24c51c7fc536101ee0993 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Tue, 31 Oct 2017 22:29:25 -0700 Subject: [PATCH] Fix to to sidebar active state --- .../Layout/components/SidebarCollections.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/components/Layout/components/SidebarCollections.js b/app/components/Layout/components/SidebarCollections.js index 38507c3aa..77b0f670b 100644 --- a/app/components/Layout/components/SidebarCollections.js +++ b/app/components/Layout/components/SidebarCollections.js @@ -16,6 +16,7 @@ import CollectionMenu from 'menus/CollectionMenu'; import CollectionsStore from 'stores/CollectionsStore'; import UiStore from 'stores/UiStore'; import Document from 'models/Document'; +import Collection from 'models/Collection'; import DocumentsStore from 'stores/DocumentsStore'; import { type NavigationNode } from 'types'; @@ -36,6 +37,7 @@ type Props = { render() { const { history, + location, collections, activeDocument, ui, @@ -50,6 +52,7 @@ type Props = { void, + prefetchDocument: (id: string) => Promise, +}; + @observer class CollectionLink extends Component { + props: CollectionLinkProps; dropzoneRef; @observable menuOpen = false;