diff --git a/web/core/store/notifications/workspace-notifications.store.ts b/web/core/store/notifications/workspace-notifications.store.ts index 12791a7dfe3..59f0dbc0332 100644 --- a/web/core/store/notifications/workspace-notifications.store.ts +++ b/web/core/store/notifications/workspace-notifications.store.ts @@ -373,6 +373,13 @@ export class WorkspaceNotificationStore implements IWorkspaceNotificationStore { }; await workspaceNotificationService.markAllNotificationsAsRead(workspaceSlug, params); runInAction(() => { + update( + this.unreadNotificationsCount, + this.currentNotificationTab === ENotificationTab.ALL + ? "total_unread_notifications_count" + : "mention_unread_notifications_count", + () => 0 + ); Object.values(this.notifications).forEach((notification) => notification.mutateNotification({ read_at: new Date().toUTCString(),