From 78f6c66547e7a99e2b896c05ed59087c1bea2c2b Mon Sep 17 00:00:00 2001 From: mini-bomba <55105495+mini-bomba@users.noreply.github.com> Date: Sat, 25 Mar 2023 13:19:47 +0100 Subject: Reset fvlabel color definitions when segment == null Without this, we would try to use the color for an 'undefined' category on the first render pass of the element. It was then immediately re-rendered with a segment set, but DR missed the update, which caused it to stick to that 'undefined' category and the label became transparent. --- src/components/CategoryPillComponent.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/CategoryPillComponent.tsx b/src/components/CategoryPillComponent.tsx index 123f3e93..e2bbb0dd 100644 --- a/src/components/CategoryPillComponent.tsx +++ b/src/components/CategoryPillComponent.tsx @@ -43,7 +43,7 @@ class CategoryPillComponent extends React.Component this.toggleOpen(e)} onMouseEnter={() => this.openTooltip()} @@ -104,8 +104,8 @@ class CategoryPillComponent extends React.Component