fix: sentry error

This commit is contained in:
Andras Bacsai 2024-01-31 14:22:48 +01:00
parent f36135cbfc
commit 628fec6904
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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;
}