Fix sidebar counts

This commit is contained in:
Gregory Schier
2026-03-12 15:40:45 -07:00
parent 9e0a708011
commit 024b0a3cd3

View File

@@ -194,7 +194,7 @@ export function Sidebar() {
const tree = useAtomValue(sidebarTreeAtom);
const treeId = SIDEBAR_TREE_ID;
const getItemKey = useCallback((item: SidebarItem) => item.id, []);
const getItemKey = useCallback((item: SidebarItem) => `${item.id}:${item.exchangeIds.length}`, []);
return (
<aside className="x-theme-sidebar bg-surface h-full w-full min-w-0 overflow-y-auto border-r border-border-subtle">