From eac80939492014f538af0ec4a02735a3ab663963 Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 21 May 2026 17:44:05 +0200 Subject: [PATCH] wip --- app/Filament/Pages/Statistic.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Filament/Pages/Statistic.php b/app/Filament/Pages/Statistic.php index 72ff64ee..ce3c9a0e 100644 --- a/app/Filament/Pages/Statistic.php +++ b/app/Filament/Pages/Statistic.php @@ -9,6 +9,7 @@ use App\Filament\Widgets\PunctualChart; use App\Models\Element; use App\Models\StatisticFixtures; use BackedEnum; +use Closure; use Filament\Actions\Action; use Filament\Forms\Components\DatePicker; use Filament\Forms\Components\Select; @@ -154,7 +155,7 @@ class Statistic extends BaseDashboard ]), Slider::make('accuracy') ->disabled(fn (Get $get) => $get('similar_past_matches') == 'none') - ->fillTrack() + ->fillTrack(fn (Closure $get, Slider $component): bool => ! $component->isDisabled()) ->default(0.5) ->decimalPlaces(1) ->tooltips()