Skip to content

Commit

Permalink
Pass label as group key even for group parents
Browse files Browse the repository at this point in the history
Can allow us to have two states, one pretty for labels, and one normalized internal one
  • Loading branch information
caendesilva committed Feb 20, 2024
1 parent 6e858fc commit 9e5dc91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static function forRoute(Route|string $route, ?string $label = null, ?int
public static function dropdown(string $label, array $items, ?int $priority = null): static
{
// TODO resolve label from config here instead of view
return new static('', $label, $priority ?? static::searchForDropdownPriorityInNavigationConfig($label) ?? 999, null, $items);
return new static('', $label, $priority ?? static::searchForDropdownPriorityInNavigationConfig($label) ?? 999, $label, $items);
}

/**
Expand Down

0 comments on commit 9e5dc91

Please sign in to comment.