Skip to content

Commit

Permalink
Move up conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 28, 2024
1 parent e2b14c9 commit e355274
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ protected function canAddRoute(Route $route): bool

protected function canGroupRoute(Route $route): bool
{
if (! $this->usesGroups) {
return false;
}

if (! $this->generatesSidebar) {
return $route->getPage()->navigationMenuGroup() !== null;
}

if (! $this->usesGroups) {
return false;
}

return true;
}

Expand Down

0 comments on commit e355274

Please sign in to comment.