From 8054407ac4358d8c3638d1a2dd5848222d9e2167 Mon Sep 17 00:00:00 2001 From: Joost Wooning Date: Mon, 14 Feb 2022 14:31:16 +0100 Subject: [PATCH] fix tests --- src/components/SignalLegendEntry/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SignalLegendEntry/index.js b/src/components/SignalLegendEntry/index.js index 1e0511c..4550f72 100644 --- a/src/components/SignalLegendEntry/index.js +++ b/src/components/SignalLegendEntry/index.js @@ -116,7 +116,7 @@ export default class SignalLegendEntry extends Component { const plottedButtonClass = isPlotted ? 'button' : 'button--alpha'; const colorBarStyle = { opacity: isHighlighted ? 0.5 : 0.3, - backgroundColor: `rgb(${color.join(',')})`, + backgroundColor: color ? `rgb(${color.join(',')})` : null, }; return (