Skip to content

Commit

Permalink
Add null coalesce to default priority in generator
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 1, 2024
1 parent c76ec47 commit edb8b50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected function createGroupItem(string $groupKey, string $groupName): NavItem

$priority = $this->searchForGroupPriorityInConfig($groupKey);

return NavItem::forGroup($this->normalizeGroupLabel($label), [], $priority);
return NavItem::forGroup($this->normalizeGroupLabel($label), [], $priority ?? NavigationMenu::LAST);
}

protected function normalizeGroupLabel(string $label): string
Expand Down

0 comments on commit edb8b50

Please sign in to comment.