mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
refactor: fix missing callback when the prod guard is hidden (#734)
This commit is contained in:
parent
6468c5c57d
commit
ff433faad0
@ -105,6 +105,7 @@ const FeatureStrategiesEnvironmentList = ({
|
||||
}
|
||||
|
||||
updateStrategy(strategy);
|
||||
callback();
|
||||
};
|
||||
|
||||
const renderStrategies = () => {
|
||||
|
@ -82,10 +82,6 @@ const FeatureStrategyEditable = ({
|
||||
};
|
||||
|
||||
updateStrategy(strategy, cleanup);
|
||||
|
||||
if (activeEnvironment.type !== PRODUCTION) {
|
||||
cleanup();
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user