fix: resolve personal environments correctly while editing via quick peek (#4384)
Co-authored-by: Dmitry Mukovkin <d.mukovkin@cft.ru> Co-authored-by: nivedin <nivedinp@gmail.com>
This commit is contained in:
parent
cda1ed5f94
commit
bb21b13471
1 changed files with 5 additions and 6 deletions
|
|
@ -135,12 +135,11 @@ defineActionHandler(
|
|||
"modals.my.environment.edit",
|
||||
({ envName, variableName, isSecret }) => {
|
||||
if (variableName) editingVariableName.value = variableName
|
||||
const envIndex: number =
|
||||
alphabeticallySortedPersonalEnvironments.value.findIndex(({ env }) => {
|
||||
return env.name === envName
|
||||
})
|
||||
if (envName !== "Global") {
|
||||
editEnvironment(envIndex)
|
||||
const env = alphabeticallySortedPersonalEnvironments.value.find(
|
||||
({ env }) => env.name === envName
|
||||
)
|
||||
if (envName !== "Global" && env) {
|
||||
editEnvironment(env.index)
|
||||
secretOptionSelected.value = isSecret ?? false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue