mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-15 20:01:28 +00:00
fix: correct action type string for global environments in autosave middleware (#6872)
This commit is contained in:
@@ -90,7 +90,7 @@ const actionsToIntercept = [
|
||||
|
||||
// Environment draft actions
|
||||
'collections/setEnvironmentsDraft',
|
||||
'globalEnvironments/setGlobalEnvironmentDraft'
|
||||
'global-environments/setGlobalEnvironmentDraft'
|
||||
];
|
||||
|
||||
// Simple object to track pending save timers
|
||||
@@ -175,7 +175,7 @@ const determineSaveHandler = (actionType, payload, dispatch, getState) => {
|
||||
};
|
||||
}
|
||||
|
||||
if (actionType === 'globalEnvironments/setGlobalEnvironmentDraft') {
|
||||
if (actionType === 'global-environments/setGlobalEnvironmentDraft') {
|
||||
if (!environmentUid) return null;
|
||||
return {
|
||||
key: `global-environment-${environmentUid}`,
|
||||
|
||||
Reference in New Issue
Block a user