We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b5040b commit 9157cb4Copy full SHA for 9157cb4
packages/framework/src/Framework/Features/Navigation/NavigationGroup.php
@@ -79,7 +79,7 @@ protected function addItem(NavigationItem $item): void
79
protected function containsOnlyDocumentationPages(): bool
80
{
81
return count($this->getItems()) && collect($this->getItems())->every(function (NavigationItem $child): bool {
82
- return (! $child->getRoute() instanceof ExternalRoute) && $child->getRoute()->getPage() instanceof DocumentationPage;
+ return ($child->getRoute() !== null) && $child->getRoute()->getPage() instanceof DocumentationPage;
83
});
84
}
85
0 commit comments