fix(topbar): didn't update when subscribing to a board

This commit is contained in:
plebeius
2026-01-03 17:25:03 +01:00
parent 9fe31c873b
commit e77dd53e0e
+3 -1
View File
@@ -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