mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-04 01:18:20 +02: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,
|
callback: PropTypes.func,
|
||||||
icon: PropTypes.string,
|
icon: PropTypes.string,
|
||||||
label: PropTypes.string,
|
label: PropTypes.string,
|
||||||
startIcon: PropTypes.string,
|
startIcon: PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default DropdownMenu;
|
export default DropdownMenu;
|
||||||
|
@ -34,7 +34,8 @@ const StrategiesList = props => {
|
|||||||
if (!editStrategyIndex) {
|
if (!editStrategyIndex) {
|
||||||
updateEditableStrategies(cloneDeep(props.configuredStrategies));
|
updateEditableStrategies(cloneDeep(props.configuredStrategies));
|
||||||
}
|
}
|
||||||
}, [props.configuredStrategies, editStrategyIndex]);
|
/* eslint-disable-next-line */
|
||||||
|
}, [props.configuredStrategies]);
|
||||||
|
|
||||||
const updateStrategy = index => strategy => {
|
const updateStrategy = index => strategy => {
|
||||||
const newStrategy = { ...strategy };
|
const newStrategy = { ...strategy };
|
||||||
|
Loading…
Reference in New Issue
Block a user