Merge pull request #426 from chrisvel/fix-inbox-20
Fix inbox sidebar counter
This commit is contained in:
commit
2da6b98e5e
1 changed files with 2 additions and 2 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue