diff --git a/app/Filament/Pages/Statistic.php b/app/Filament/Pages/Statistic.php index 15d254d0..c7008734 100644 --- a/app/Filament/Pages/Statistic.php +++ b/app/Filament/Pages/Statistic.php @@ -134,6 +134,7 @@ class Statistic extends BaseDashboard Action::make('copyCostToPrice') ->action(function (callable $set) { $set('tm_player_id', null); + $set('player_on_field', null); }) ->color('gray') ->icon('phosphor-x'), @@ -148,6 +149,7 @@ class Statistic extends BaseDashboard ->label('Time on field') ->prefixIcon('phosphor-watch') ->default('all') + ->disabled(fn (Get $get) => ! $get('tm_player_id')) ->selectablePlaceholder(false) ->options([ 'all' => 'All',