Skip to content

Commit

Permalink
Update RegisterPages.php
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvalue authored Jan 3, 2024
1 parent bcdf5e7 commit 1a8278e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/RegisterPages.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function boot(Panel $panel)
*/
$page = new $pageClass();

if ($page::shouldRegisterNavigation() === false) {
if (method_exists($page, 'shouldRegisterSpotlight') && $page::shouldRegisterSpotlight() === false) {
continue;
}

Expand Down

0 comments on commit 1a8278e

Please sign in to comment.