diff --git a/app/Livewire/Project/Shared/Danger.php b/app/Livewire/Project/Shared/Danger.php index d0f05d0ec..862061640 100644 --- a/app/Livewire/Project/Shared/Danger.php +++ b/app/Livewire/Project/Shared/Danger.php @@ -31,8 +31,6 @@ class Danger extends Component $this->projectUuid = data_get($parameters, 'project_uuid'); $this->environmentName = data_get($parameters, 'environment_name'); - ray('Mount method called'); - if ($this->resource === null) { if (isset($parameters['service_uuid'])) { $this->resource = Service::where('uuid', $parameters['service_uuid'])->first(); @@ -42,22 +40,16 @@ class Danger extends Component } } - ray('Resource:', $this->resource); - if ($this->resource === null) { - ray('Resource is null'); $this->resourceName = 'Unknown Resource'; return; } if (!method_exists($this->resource, 'type')) { - ray('Resource does not have type() method'); $this->resourceName = 'Unknown Resource'; return; } - ray('Resource type:', $this->resource->type()); - switch ($this->resource->type()) { case 'application': $this->resourceName = $this->resource->name ?? 'Application'; @@ -84,8 +76,6 @@ class Danger extends Component default: $this->resourceName = 'Unknown Resource'; } - - ray('Final resource name:', $this->resourceName); } public function delete($password)