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:
@@ -135,12 +135,11 @@ defineActionHandler(
|
|||||||
"modals.my.environment.edit",
|
"modals.my.environment.edit",
|
||||||
({ envName, variableName, isSecret }) => {
|
({ envName, variableName, isSecret }) => {
|
||||||
if (variableName) editingVariableName.value = variableName
|
if (variableName) editingVariableName.value = variableName
|
||||||
const envIndex: number =
|
const env = alphabeticallySortedPersonalEnvironments.value.find(
|
||||||
alphabeticallySortedPersonalEnvironments.value.findIndex(({ env }) => {
|
({ env }) => env.name === envName
|
||||||
return env.name === envName
|
)
|
||||||
})
|
if (envName !== "Global" && env) {
|
||||||
if (envName !== "Global") {
|
editEnvironment(env.index)
|
||||||
editEnvironment(envIndex)
|
|
||||||
secretOptionSelected.value = isSecret ?? false
|
secretOptionSelected.value = isSecret ?? false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user