diff --git a/app/Livewire/Project/Shared/Danger.php b/app/Livewire/Project/Shared/Danger.php index b0f1c97c7..f19cf8d53 100644 --- a/app/Livewire/Project/Shared/Danger.php +++ b/app/Livewire/Project/Shared/Danger.php @@ -17,8 +17,8 @@ public function mount() { $this->modalId = new Cuid2(7); $parameters = get_route_parameters(); - $this->projectUuid = $parameters['project_uuid']; - $this->environmentName = $parameters['environment_name']; + $this->projectUuid = data_get($parameters, 'project_uuid'); + $this->environmentName = data_get($parameters, 'environment_name'); } public function delete() diff --git a/app/Livewire/Project/Shared/ResourceOperations.php b/app/Livewire/Project/Shared/ResourceOperations.php index 125bf2fb4..e2037991a 100644 --- a/app/Livewire/Project/Shared/ResourceOperations.php +++ b/app/Livewire/Project/Shared/ResourceOperations.php @@ -20,8 +20,8 @@ class ResourceOperations extends Component public function mount() { $parameters = get_route_parameters(); - $this->projectUuid = $parameters['project_uuid']; - $this->environmentName = $parameters['environment_name']; + $this->projectUuid = data_get($parameters, 'project_uuid'); + $this->environmentName = data_get($parameters, 'environment_name'); $this->projects = Project::ownedByCurrentTeam()->get(); $this->servers = currentTeam()->servers; }