diff --git a/src/components/fields/ColorField.jsx b/src/components/fields/ColorField.jsx index 73776c6..25b1670 100644 --- a/src/components/fields/ColorField.jsx +++ b/src/components/fields/ColorField.jsx @@ -50,16 +50,14 @@ class ColorField extends React.Component { } get color() { - let color = Color("rgb(255,255,255)"); - // Catch invalid color. try { return Color(this.props.value).rgb() } catch(err) { console.warn("Error parsing color: ", err); + return Color("rgb(255,255,255)"); } - return color; } render() {