mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-27 00:19:39 +01:00
fix: remove editableStrategies from useEffect deps
This commit is contained in:
parent
22795e251f
commit
45bce4576d
@ -51,7 +51,7 @@ DropdownMenu.propTypes = {
|
||||
callback: PropTypes.func,
|
||||
icon: PropTypes.string,
|
||||
label: PropTypes.string,
|
||||
startIcon: PropTypes.string,
|
||||
startIcon: PropTypes.object,
|
||||
};
|
||||
|
||||
export default DropdownMenu;
|
||||
|
@ -34,7 +34,8 @@ const StrategiesList = props => {
|
||||
if (!editStrategyIndex) {
|
||||
updateEditableStrategies(cloneDeep(props.configuredStrategies));
|
||||
}
|
||||
}, [props.configuredStrategies, editStrategyIndex]);
|
||||
/* eslint-disable-next-line */
|
||||
}, [props.configuredStrategies]);
|
||||
|
||||
const updateStrategy = index => strategy => {
|
||||
const newStrategy = { ...strategy };
|
||||
|
Loading…
Reference in New Issue
Block a user