1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-27 01:19:00 +02:00

refactor: fix missing callback when the prod guard is hidden (#734)

This commit is contained in:
olav 2022-02-22 16:30:13 +01:00 committed by GitHub
parent 6468c5c57d
commit ff433faad0
2 changed files with 1 additions and 4 deletions

View File

@ -105,6 +105,7 @@ const FeatureStrategiesEnvironmentList = ({
} }
updateStrategy(strategy); updateStrategy(strategy);
callback();
}; };
const renderStrategies = () => { const renderStrategies = () => {

View File

@ -82,10 +82,6 @@ const FeatureStrategyEditable = ({
}; };
updateStrategy(strategy, cleanup); updateStrategy(strategy, cleanup);
if (activeEnvironment.type !== PRODUCTION) {
cleanup();
}
}; };
useEffect(() => { useEffect(() => {