Merge pull request #3271 from lohxt1/main

fix: copy global env
This commit is contained in:
lohit 2024-10-08 18:33:16 +05:30 committed by GitHub
commit c0dc329861
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,7 @@ export const copyGlobalEnvironment = ({ name, environmentUid: baseEnvUid }) => (
const baseEnv = globalEnvironments?.find(env => env?.uid == baseEnvUid)
const uid = uuid();
ipcRenderer
.invoke('renderer:create-global-environment', { name, variables: baseEnv.variables })
.invoke('renderer:create-global-environment', { uid, name, variables: baseEnv.variables })
.then(() => {
dispatch(_copyGlobalEnvironment({ name, uid, variables: baseEnv.variables }))
})