diff --git a/CommonUI/src/Components/Forms/Fields/ColorPicker.tsx b/CommonUI/src/Components/Forms/Fields/ColorPicker.tsx index fbd3c69526..b617c15bd8 100644 --- a/CommonUI/src/Components/Forms/Fields/ColorPicker.tsx +++ b/CommonUI/src/Components/Forms/Fields/ColorPicker.tsx @@ -27,7 +27,7 @@ const ColorPicker: FunctionComponent = ( if (props.initialValue) { setColor(props.initialValue.toString()); } - }, []); + }, [props.initialValue]); const handleChange: Function = (color: string): void => { setColor(color);