Skip to content

Commit

Permalink
Mitigate undefined errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Aug 11, 2023
1 parent 4f58297 commit 8804c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/php/Component/HamburgerMenu/hamburgerMenu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class="{{$baseClass}}__item {{$baseClass}}__item--parent o-grid-12 o-grid-6@md o
$baseClass . '__link--child'
]
])
@if(isset($child['icon']) && !empty($child['icon']['icon']))
@if(isset($child['icon']) && !array_diff(['icon', 'size', 'classList'], array_keys($child['icon'])))
@icon([
'icon' => $child['icon']['icon'],
'size' => $child['icon']['size'],
Expand Down

0 comments on commit 8804c1d

Please sign in to comment.