From 76a39fcf92da57c9e4fd59831ad805a3b007da8c Mon Sep 17 00:00:00 2001 From: LiudengZhang <99156394+LiudengZhang@users.noreply.github.com> Date: Mon, 9 Mar 2026 15:39:56 -0500 Subject: [PATCH] fix: correct opacity prop typo and style object in centroid labels (#2767) --- client/src/components/graph/overlays/centroidLabels.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/graph/overlays/centroidLabels.js b/client/src/components/graph/overlays/centroidLabels.js index e8d3da00..941a1287 100644 --- a/client/src/components/graph/overlays/centroidLabels.js +++ b/client/src/components/graph/overlays/centroidLabels.js @@ -150,7 +150,7 @@ class CentroidLabels extends PureComponent { dilatedValue={dilatedValue} coords={coords} inverseTransform={inverseTransform} - opactity={selected ? 1 : deselectOpacity} + opacity={selected ? 1 : deselectOpacity} colorAccessor={colorAccessor} displayLabel={displayLabel} onMouseEnter={this.handleMouseEnter} @@ -205,7 +205,7 @@ const Label = ({ fontWeight, fill: "black", userSelect: "none", - opacity: { opacity }, + opacity, }} onMouseEnter={(e) => onMouseEnter(e, colorAccessor, label)} onMouseOut={(e) => onMouseOut(e, colorAccessor, label)}