Updated SidebarPanelGroupt to return null if no panel

• Updated:
- SidebarPanelGroupt to return null if no panel
This commit is contained in:
mgabdev 2020-08-19 11:14:26 -05:00
parent 79bf73f0c5
commit 295f052f81
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ class SidebarPanelGroup extends React.PureComponent {
<React.Fragment>
{
layout.map((panel) => {
if (!panel) return null
if (typeof panel !== 'function') {
return panel
}