From 9f2706d2907a9621d6ac75320e9c992123e90299 Mon Sep 17 00:00:00 2001 From: Charles Lehnert Date: Tue, 23 Apr 2019 17:40:24 -0400 Subject: [PATCH] Check for color knob value existence before applying uppercase --- addons/knobs/src/components/types/Color.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/knobs/src/components/types/Color.js b/addons/knobs/src/components/types/Color.js index 5923015f3852..1b440d615616 100644 --- a/addons/knobs/src/components/types/Color.js +++ b/addons/knobs/src/components/types/Color.js @@ -82,7 +82,6 @@ class ColorType extends React.Component { const colorStyle = { background: knob.value, }; - return ( - {knob.value.toUpperCase()} + {knob.value && knob.value.toUpperCase()} {displayColorPicker ? (