From f8b11e3172817d3aa2712cd3e9cfe21b109f1f74 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 3 Aug 2022 19:24:16 +0100 Subject: [PATCH] fix color picker --- CommonUI/src/Components/Forms/Fields/ColorPicker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);