Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: activity type invalid

Andras Bacsai102dd6bfb1f6
diff --git a/app/Livewire/Project/Service/Navbar.php b/app/Livewire/Project/Service/Navbar.php
index 7d3987b3d5..f2fd5ae961 100644
--- a/app/Livewire/Project/Service/Navbar.php
+++ b/app/Livewire/Project/Service/Navbar.php
@@ -62,11 +62,15 @@ class Navbar extends Component
public function checkDeployments()
{
- $activity = Activity::where('properties->type_uuid', $this->service->uuid)->latest()->first();
- $status = data_get($activity, 'properties.status');
- if ($status === 'queued' || $status === 'in_progress') {
- $this->isDeploymentProgress = true;
- } else {
+ try {
+ $activity = Activity::where('properties->type_uuid', $this->service->uuid)->latest()->first();
+ $status = data_get($activity, 'properties.status');
+ if ($status === 'queued' || $status === 'in_progress') {
+ $this->isDeploymentProgress = true;
+ } else {
+ $this->isDeploymentProgress = false;
+ }
+ } catch (\Exception $e) {
$this->isDeploymentProgress = false;
}
}