Skip to content

Commit ba9af45

Browse files
committed
Only render panels with elements in the history state.
Fixes #118
1 parent d01e10a commit ba9af45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

View/ToolbarAccess/history_state.ctp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
$panels = array();
2020
foreach ($toolbarState as $panelName => $panel) {
21-
if (!empty($panel)) {
21+
if (!empty($panel) && !empty($panel['elementName'])) {
2222
$panels[$panelName] = $this->element($panel['elementName'], array(
2323
'content' => $panel['content']
2424
), array(

0 commit comments

Comments
 (0)