From e77dd53e0ef6c123247af5ba0b7365f25533f661 Mon Sep 17 00:00:00 2001 From: plebeius Date: Sat, 3 Jan 2026 17:25:03 +0100 Subject: [PATCH] fix(topbar): didn't update when subscribing to a board --- src/components/topbar/topbar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/topbar/topbar.tsx b/src/components/topbar/topbar.tsx index a4d529de..4b9b24fa 100644 --- a/src/components/topbar/topbar.tsx +++ b/src/components/topbar/topbar.tsx @@ -108,7 +108,9 @@ const TopBarDesktop = () => { (state) => { const activeAccountId = state.activeAccountId; const activeAccount = activeAccountId ? state.accounts[activeAccountId] : undefined; - return activeAccount?.subscriptions || []; + // Spread to create new reference - if array is mutated in place, the equality + // function needs different references to detect content changes + return [...(activeAccount?.subscriptions || [])]; }, (prev, next) => { // Shallow compare arrays - only rerender if subscriptions actually change