Updated SidebarPanelGroupt to return null if no panel
• Updated: - SidebarPanelGroupt to return null if no panel
This commit is contained in:
parent
79bf73f0c5
commit
295f052f81
@ -28,6 +28,8 @@ class SidebarPanelGroup extends React.PureComponent {
|
|||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
{
|
{
|
||||||
layout.map((panel) => {
|
layout.map((panel) => {
|
||||||
|
if (!panel) return null
|
||||||
|
|
||||||
if (typeof panel !== 'function') {
|
if (typeof panel !== 'function') {
|
||||||
return panel
|
return panel
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user