Skip to content

Commit

Permalink
Fix creating a project variable without a selected env
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Dec 27, 2024
1 parent c96a639 commit 461ac1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Command/Variable/VariableCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
unset($values['prefix']);
}

$environment = $selection->getEnvironment();

$environment = null;
if (isset($values['environment'])) {
$environment = $this->api->getEnvironment($values['environment'], $selection->getProject());
if (!$environment) {
Expand Down

0 comments on commit 461ac1f

Please sign in to comment.