From 4d9c215341750b884167b57191f9da6b38b89e83 Mon Sep 17 00:00:00 2001 From: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com> Date: Sat, 25 Jan 2025 12:00:20 +0000 Subject: [PATCH] Fix badge --- app/Filament/App/Resources/ServerResource/Pages/ListServers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/App/Resources/ServerResource/Pages/ListServers.php b/app/Filament/App/Resources/ServerResource/Pages/ListServers.php index e293b4e435..a1e2d26746 100644 --- a/app/Filament/App/Resources/ServerResource/Pages/ListServers.php +++ b/app/Filament/App/Resources/ServerResource/Pages/ListServers.php @@ -58,7 +58,7 @@ public function getTabs(): array ->modifyQueryUsing(fn (Builder $query) => $query->where('owner_id', auth()->user()->id)), 'other' => Tab::make('Others\' Servers') - ->badge(fn () => $baseQuery->whereNot('owner_id', auth()->user()->id)->count()) + ->badge(fn (Builder $query) => $query->whereNot('owner_id', auth()->user()->id)->count()) ->modifyQueryUsing(fn (Builder $query) => $query->whereNot('owner_id', auth()->user()->id)), 'all' => Tab::make('All Servers')