Skip to content

Commit

Permalink
Send empty values instead of null to Navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkidn committed Dec 1, 2023
1 parent 54ff627 commit 386fa1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MenuCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function addMenu(Menu $menu)
$navigation = $this->newEmptyNavigation();

$menu->items->each(function (MenuItem $item) use ($navigation) {
$navigation->add($item->label, $item->route, $this->childrenCallback($item));
$navigation->add($item->label ?? '', $item->route ?? '', $this->childrenCallback($item));
});

$this->put($menu->identifier, $navigation);
Expand Down

0 comments on commit 386fa1e

Please sign in to comment.