diff --git a/app/Filament/Widgets/Data/LoadEvents.php b/app/Filament/Widgets/Data/LoadEvents.php index 915da789..86e30a98 100644 --- a/app/Filament/Widgets/Data/LoadEvents.php +++ b/app/Filament/Widgets/Data/LoadEvents.php @@ -81,7 +81,11 @@ class LoadEvents $team_position = 'all'; } - $expectations = LoadExpectations::load($res['all'] ?? [], $match, $statistic_type); + if (!isset($res['all'])) { + return; + } + + $expectations = LoadExpectations::load($res['all'], $match, $statistic_type); foreach ($res[$team_position] as $value) {