Skip to content

Commit

Permalink
🩹 Fix fallback ternary when passing items to build (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored Mar 26, 2024
1 parent e2a388e commit 2ccf831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Navi.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function build(mixed $menu = null): self

$items = wp_get_nav_menu_items($this->menu);

$this->items = MenuBuilder::make()->build($items ?? []);
$this->items = MenuBuilder::make()->build($items ?: []);

return $this;
}
Expand Down

0 comments on commit 2ccf831

Please sign in to comment.