Skip to content

Commit

Permalink
Fix indices in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljennings committed Apr 23, 2018
1 parent fdc6e0c commit 9e4b9c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Components/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ protected function parseItems(array $items)
$items[$key] = $item;
}

return $items;
// Reset the indices.
return array_values($items);
}

/**
Expand Down

0 comments on commit 9e4b9c9

Please sign in to comment.