From 9c57d6a4314973bab58b7e6cdc504b0c2615c37c Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Sat, 13 Jun 2026 16:42:35 +0200 Subject: [PATCH] fix(groups): colour-picker highlight follows the live selection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The selected-swatch ring compared each swatch against `groupData.groupColors`, which is only written back on save — so clicking a colour updated the local `colors` state (and the top preview swatches) but the highlight ring never moved, leaving the two in visible disagreement until you left and reopened the tab. Compare against `colors[0]`/`colors[1]` (the live state) instead. --- src/components/groups/views/tabs/GroupTabColorsView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/groups/views/tabs/GroupTabColorsView.tsx b/src/components/groups/views/tabs/GroupTabColorsView.tsx index 4e1dd3b..9e7893f 100644 --- a/src/components/groups/views/tabs/GroupTabColorsView.tsx +++ b/src/components/groups/views/tabs/GroupTabColorsView.tsx @@ -113,7 +113,7 @@ export const GroupTabColorsView: FC = props => { groupData.groupColors && groupCustomize?.groupColorsA && groupCustomize.groupColorsA.map((item, index) => { - return
selectColor(0, item.id) }>
; + return
selectColor(0, item.id) }>
; }) }
@@ -122,7 +122,7 @@ export const GroupTabColorsView: FC = props => { groupData.groupColors && groupCustomize?.groupColorsB && groupCustomize.groupColorsB.map((item, index) => { - return
selectColor(1, item.id) }>
; + return
selectColor(1, item.id) }>
; }) }