Fix global env issue on bulk import (#5396)

This commit is contained in:
sreelakshmi-bruno
2025-08-22 14:05:41 +05:30
committed by GitHub
parent aec9ee6265
commit 2ed51bb984
3 changed files with 8 additions and 7 deletions

View File

@@ -25,12 +25,7 @@ const ImportEnvironment = ({ onClose }) => {
}
)
.map((environment) => {
let variables = environment?.variables?.map(v => ({
...v,
uid: uuid(),
type: 'text'
}));
dispatch(addGlobalEnvironment({ name: environment.name, variables }))
dispatch(addGlobalEnvironment({ name: environment.name, variables: environment.variables }))
.then(() => {
toast.success('Global Environment imported successfully');
})