Skip to content

Commit e355274

Browse files
committed
Move up conditional
1 parent e2b14c9 commit e355274

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/framework/src/Framework/Features/Navigation/NavigationMenuGenerator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ protected function canAddRoute(Route $route): bool
120120

121121
protected function canGroupRoute(Route $route): bool
122122
{
123-
if (! $this->usesGroups) {
124-
return false;
125-
}
126-
127123
if (! $this->generatesSidebar) {
128124
return $route->getPage()->navigationMenuGroup() !== null;
129125
}
130126

127+
if (! $this->usesGroups) {
128+
return false;
129+
}
130+
131131
return true;
132132
}
133133

0 commit comments

Comments
 (0)