diff --git a/src/Http/Controllers/CP/CommandPaletteController.php b/src/Http/Controllers/CP/CommandPaletteController.php index ffb34b96c7..b82845f605 100644 --- a/src/Http/Controllers/CP/CommandPaletteController.php +++ b/src/Http/Controllers/CP/CommandPaletteController.php @@ -47,7 +47,11 @@ private function badge(Index $index, Result $result) { $badge = $result->getCpBadge(); - if (! Arr::has($index->config(), 'sites') && method_exists($result->getSearchable(), 'site')) { + if ( + Site::hasMultiple() + && ! Arr::has($index->config(), 'sites') + && method_exists($result->getSearchable(), 'site') + ) { $badge = $result->getSearchable()->site()->name().' - '.$badge; }