From e487aa78f327b9748dda5c75d5064f348e4cbaaa Mon Sep 17 00:00:00 2001 From: rouggy Date: Thu, 9 Jul 2026 15:36:37 +0200 Subject: [PATCH] fix: Awards columns persistence bug --- frontend/src/components/RecentQSOsGrid.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/components/RecentQSOsGrid.tsx b/frontend/src/components/RecentQSOsGrid.tsx index 7982adb..f90675d 100644 --- a/frontend/src/components/RecentQSOsGrid.tsx +++ b/frontend/src/components/RecentQSOsGrid.tsx @@ -274,6 +274,12 @@ export function RecentQSOsGrid({ rows, selectAllSignal, onRowDoubleClicked, onRo headerTooltip: t('rqg.awardTip', { name: a.name }), width: 110, cellClass: 'text-[11px]', + // Hidden by DEFAULT (award columns are opt-in). Without this, AG Grid shows + // them whenever the saved column state doesn't cover them — a newly-added + // award, an empty cache, or a rebuild that runs before the saved state is + // re-applied — which is why "all award columns" kept reappearing. The user's + // saved state (a column they explicitly showed) still overrides this. + hide: true, valueGetter: (p) => (p.data as any)?.award_refs?.[a.code.toUpperCase()] ?? '', })); return [...base, ...awards];