From 2571de86e224ec2255f33bca02a078891580f6a2 Mon Sep 17 00:00:00 2001 From: other Date: Wed, 6 May 2020 10:02:29 +0800 Subject: [PATCH] revoke --- src/components/color-picker/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/color-picker/utils.js b/src/components/color-picker/utils.js index 217e94a..964cdb1 100644 --- a/src/components/color-picker/utils.js +++ b/src/components/color-picker/utils.js @@ -30,7 +30,7 @@ function getColor(data, colorData) { } export function changeColor(data, oldHue) { - const colorData = data === '' ? '#2d8cf0' : (data || ''); + const colorData = data === '' ? '#2d8cf0' : data; const color = getColor(data, colorData); const hsl = color.toHsl(); const hsv = color.toHsv(); -- libgit2 0.21.4