refactor: optional variables to createEnvironment and fixing the order of initializing GqlClient (#2944)

This commit is contained in:
Akash K
2023-03-07 16:12:11 +05:30
committed by GitHub
parent 3fa4052538
commit ae9b7183b5
4 changed files with 11 additions and 11 deletions

View File

@@ -304,8 +304,7 @@ const saveEnvironment = () => {
if (props.action === "new") {
// Creating a new environment
createEnvironment(name.value)
updateEnvironment(envList.value.length - 1, environmentUpdated)
createEnvironment(name.value, environmentUpdated.variables)
setSelectedEnvironmentIndex({
type: "MY_ENV",
index: envList.value.length - 1,