feat: secret variables in environments (#3779)
Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
@@ -81,6 +81,7 @@ async function loadUserEnvironments() {
|
||||
runDispatchWithOutSyncing(() => {
|
||||
replaceEnvironments(
|
||||
environments.map(({ id, variables, name }) => ({
|
||||
v: 1,
|
||||
id,
|
||||
name,
|
||||
variables: JSON.parse(variables),
|
||||
@@ -164,6 +165,7 @@ function setupUserEnvironmentUpdatedSubscription() {
|
||||
if ((localIndex || localIndex == 0) && name) {
|
||||
runDispatchWithOutSyncing(() => {
|
||||
updateEnvironment(localIndex, {
|
||||
v: 1,
|
||||
id,
|
||||
name,
|
||||
variables: JSON.parse(variables),
|
||||
|
||||
Reference in New Issue
Block a user