summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/sidebars/project/ProjectSidebarContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/containers/app/sidebars/project/ProjectSidebarContainer.js')
-rw-r--r--frontend/src/containers/app/sidebars/project/ProjectSidebarContainer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/containers/app/sidebars/project/ProjectSidebarContainer.js b/frontend/src/containers/app/sidebars/project/ProjectSidebarContainer.js
index 3951c24a..49001099 100644
--- a/frontend/src/containers/app/sidebars/project/ProjectSidebarContainer.js
+++ b/frontend/src/containers/app/sidebars/project/ProjectSidebarContainer.js
@@ -1,10 +1,10 @@
import React from 'react'
import { withRouter } from 'react-router-dom'
import ProjectSidebarComponent from '../../../../components/app/sidebars/project/ProjectSidebarComponent'
+import { isCollapsible } from '../../../../util/sidebar-space'
const ProjectSidebarContainer = withRouter(({ location, ...props }) => (
- <ProjectSidebarComponent
- collapsible={location.pathname.indexOf('portfolios') === -1 && location.pathname.indexOf('scenarios') === -1} {...props}/>
+ <ProjectSidebarComponent collapsible={isCollapsible(location)} {...props} />
))
export default ProjectSidebarContainer