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:
parent
6468c5c57d
commit
ff433faad0
@ -105,6 +105,7 @@ const FeatureStrategiesEnvironmentList = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateStrategy(strategy);
|
updateStrategy(strategy);
|
||||||
|
callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderStrategies = () => {
|
const renderStrategies = () => {
|
||||||
|
@ -82,10 +82,6 @@ const FeatureStrategyEditable = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
updateStrategy(strategy, cleanup);
|
updateStrategy(strategy, cleanup);
|
||||||
|
|
||||||
if (activeEnvironment.type !== PRODUCTION) {
|
|
||||||
cleanup();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user