Commit ed971ac29780419575388e6f51d738f5c44e54e8
1 parent
2571de86
data
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/color-picker/utils.js
@@ -30,7 +30,7 @@ function getColor(data, colorData) { | @@ -30,7 +30,7 @@ function getColor(data, colorData) { | ||
30 | } | 30 | } |
31 | 31 | ||
32 | export function changeColor(data, oldHue) { | 32 | export function changeColor(data, oldHue) { |
33 | - const colorData = data === '' ? '#2d8cf0' : data; | 33 | + const colorData = data === '' ? '#2d8cf0' : (data || ''); |
34 | const color = getColor(data, colorData); | 34 | const color = getColor(data, colorData); |
35 | const hsl = color.toHsl(); | 35 | const hsl = color.toHsl(); |
36 | const hsv = color.toHsv(); | 36 | const hsv = color.toHsv(); |