fix: correct action type string for global environments in autosave middleware (#6872)

This commit is contained in:
Sanjai Kumar
2026-01-21 18:33:09 +05:30
committed by GitHub
parent 75e17610f0
commit 0b79ce9095

View File

@@ -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}`,