From 74838cdba73353f9eb216e9c5e830215b490ac80 Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 21 May 2026 18:54:59 +0200 Subject: [PATCH] wip --- app/Actions/Statistics/LoadEventsAspGoal.php | 4 ++++ app/Filament/Pages/Statistic.php | 1 + 2 files changed, 5 insertions(+) diff --git a/app/Actions/Statistics/LoadEventsAspGoal.php b/app/Actions/Statistics/LoadEventsAspGoal.php index 40a08cfc..971ddfe1 100644 --- a/app/Actions/Statistics/LoadEventsAspGoal.php +++ b/app/Actions/Statistics/LoadEventsAspGoal.php @@ -44,6 +44,10 @@ class LoadEventsAspGoal break; } + if ($res == null) { + return []; + } + $start = $filter['start_date'] ?? 0; $end = $filter['end_date'] ?? 0; diff --git a/app/Filament/Pages/Statistic.php b/app/Filament/Pages/Statistic.php index a6b9ce84..bb06915f 100644 --- a/app/Filament/Pages/Statistic.php +++ b/app/Filament/Pages/Statistic.php @@ -153,6 +153,7 @@ class Statistic extends BaseDashboard ->disabled(fn (Get $get) => $get('similar_past_matches') == 'none') ->fillTrack() ->default(0.5) + ->step(0.1) ->decimalPlaces(1) ->tooltips() ->range(minValue: 0, maxValue: 1),