diff --git a/app/Livewire/Server/Resources.php b/app/Livewire/Server/Resources.php index c90d5b4c9..f781418d9 100644 --- a/app/Livewire/Server/Resources.php +++ b/app/Livewire/Server/Resources.php @@ -12,7 +12,7 @@ class Resources extends Component use AuthorizesRequests; public ?Server $server = null; public $parameters = []; - public ?Collection $unmanagedContainers = null; + public Collection $unmanagedContainers; public function getListeners() { $teamId = auth()->user()->currentTeam()->id; diff --git a/app/Models/Server.php b/app/Models/Server.php index d43256c8d..938ed1126 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -275,6 +275,8 @@ public function loadUnmanagedContainers() }); $containers = $containers->filter(); return collect($containers); + } else { + return collect([]); } } public function hasDefinedResources()