fix: activity type invalid
This commit is contained in:
@@ -62,6 +62,7 @@ class Navbar extends Component
|
|||||||
|
|
||||||
public function checkDeployments()
|
public function checkDeployments()
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
$activity = Activity::where('properties->type_uuid', $this->service->uuid)->latest()->first();
|
$activity = Activity::where('properties->type_uuid', $this->service->uuid)->latest()->first();
|
||||||
$status = data_get($activity, 'properties.status');
|
$status = data_get($activity, 'properties.status');
|
||||||
if ($status === 'queued' || $status === 'in_progress') {
|
if ($status === 'queued' || $status === 'in_progress') {
|
||||||
@@ -69,6 +70,9 @@ class Navbar extends Component
|
|||||||
} else {
|
} else {
|
||||||
$this->isDeploymentProgress = false;
|
$this->isDeploymentProgress = false;
|
||||||
}
|
}
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
$this->isDeploymentProgress = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function start()
|
public function start()
|
||||||
|
Reference in New Issue
Block a user