diff --git a/app/Integrations/Core/System.php b/app/Integrations/Core/System.php index 5504c21c88e6..49851503b8b7 100644 --- a/app/Integrations/Core/System.php +++ b/app/Integrations/Core/System.php @@ -50,8 +50,8 @@ public function __construct(Repository $config) public function getStatus() { $enabledScope = Component::enabled(); - $totalComponents = $enabledScope->count(); - $majorOutages = $enabledScope->status(4)->count(); + $totalComponents = (clone $enabledScope)->count(); + $majorOutages = (clone $enabledScope)->status(4)->count(); $isMajorOutage = $totalComponents ? ($majorOutages / $totalComponents) >= 0.5 : false; // Default data