fix: issues with global environment writes
This commit is contained in:
@@ -476,3 +476,7 @@ export function updateEnvironmentVariable(
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
export function getEnviroment(index: number) {
|
||||
return environmentsStore.value.environments[index]
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ function setupGlobalEnvsPersistence() {
|
||||
setGlobalEnvVariables(globals)
|
||||
|
||||
globalEnv$.subscribe((vars) => {
|
||||
window.localStorage.setItem("globalEnvs", JSON.stringify(vars))
|
||||
window.localStorage.setItem("globalEnv", JSON.stringify(vars))
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user