Skip to content

Commit

Permalink
⏪️ Change menu item keys back to their respective ID' (Fixes #66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Mar 18, 2024
1 parent e1dec43 commit 7ac3e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function handle(array $items, int $parent = 0): array

$item->children = $this->handle($items, $item->id);

$menu[] = $item;
$menu[$item->id] = $item;

unset($item);
}
Expand Down

0 comments on commit 7ac3e60

Please sign in to comment.