From 0db8c31ecd21ffb0b2b56595e0b6accb03fdf292 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Fri, 30 Jan 2026 09:48:36 -0500 Subject: [PATCH] only show the site badge when there are multiple sites --- src/Http/Controllers/CP/CommandPaletteController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }