fix color picker

This commit is contained in:
Simon Larsen 2022-08-03 19:24:16 +01:00
parent 8e4db99c9c
commit f8b11e3172
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -27,7 +27,7 @@ const ColorPicker: FunctionComponent<ComponentProps> = (
if (props.initialValue) {
setColor(props.initialValue.toString());
}
}, []);
}, [props.initialValue]);
const handleChange: Function = (color: string): void => {
setColor(color);