fix: selected env changed while sidebar collapsed (#3002)

This commit is contained in:
Nivedin
2023-04-21 20:27:04 +05:30
committed by GitHub
parent b42a94ed77
commit 3506e96cfd
3 changed files with 62 additions and 26 deletions

View File

@@ -408,11 +408,9 @@ const selectedEnv = computed(() => {
teamEnvID: selectedEnvironmentIndex.value.teamEnvID,
}
} else {
selectedEnvironmentIndex.value = { type: "NO_ENV_SELECTED" }
return { type: "NO_ENV_SELECTED" }
}
} else {
selectedEnvironmentIndex.value = { type: "NO_ENV_SELECTED" }
return { type: "NO_ENV_SELECTED" }
}
})