1
0
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:
Fredrik Oseberg 2021-04-07 09:26:34 +02:00
parent 22795e251f
commit 45bce4576d
2 changed files with 3 additions and 2 deletions

View File

@ -51,7 +51,7 @@ DropdownMenu.propTypes = {
callback: PropTypes.func,
icon: PropTypes.string,
label: PropTypes.string,
startIcon: PropTypes.string,
startIcon: PropTypes.object,
};
export default DropdownMenu;

View File

@ -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 };