show navigation component styles even if no navigation
@@ -13,6 +13,8 @@ export default function Navigation ({
const { sections = [] } = navigation
return (
<nav className='navigation--left'>
+ {navigation && (
+ <React.Fragment>
<div className='navigation-namespace-selector'>
<Selector
placeholder='Select namespace...'
@@ -24,6 +26,8 @@ export default function Navigation ({
{sections.map(({ title, path, children }) => (
<Section key={title} title={title} path={path} items={children} />
))}
+ </React.Fragment>
+ )}
</nav>
)
}
