Merge pull request #426 from chrisvel/fix-inbox-20

Fix inbox sidebar counter
This commit is contained in:
Chris 2025-10-20 12:17:03 +03:00 committed by GitHub
commit 2da6b98e5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,8 +23,8 @@ const SidebarNav: React.FC<SidebarNavProps> = ({
const { t } = useTranslation();
const store = useStore();
// Get inbox items count for badge
const inboxItemsCount = store.inboxStore.inboxItems.length;
// Get inbox items count for badge - use pagination.total for accurate count
const inboxItemsCount = store.inboxStore.pagination.total;
// Load inbox items when component mounts to ensure badge shows correct count
useEffect(() => {