Skip to content

Commit

Permalink
fix: update type
Browse files Browse the repository at this point in the history
  • Loading branch information
nivedin committed Oct 8, 2024
1 parent 139d0fd commit 3ef7940
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ defineActionHandler(
"modals.my.environment.edit",
({ envName, variableName, isSecret }) => {
if (variableName) editingVariableName.value = variableName
const env: number = alphabeticallySortedPersonalEnvironments.value.find(
const env = alphabeticallySortedPersonalEnvironments.value.find(
({ env }) => env.name === envName
)
if (envName !== "Global") {
if (envName !== "Global" && env) {
editEnvironment(env.index)
secretOptionSelected.value = isSecret ?? false
}
Expand Down

0 comments on commit 3ef7940

Please sign in to comment.