mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: total notifications count (#1579)
This commit is contained in:
parent
1bae9289f5
commit
26b18b431b
@ -69,7 +69,7 @@ export const NotificationPopover = () => {
|
||||
{
|
||||
label: "Subscribed",
|
||||
value: "watching",
|
||||
unreadCount: notificationCount?.watching_notifications,
|
||||
unreadCount: notificationCount?.watching_issues,
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -170,7 +170,7 @@ const useUserNotification = () => {
|
||||
setSelectedTab,
|
||||
totalNotificationCount: notificationCount
|
||||
? notificationCount.created_issues +
|
||||
notificationCount.watching_notifications +
|
||||
notificationCount.watching_issues +
|
||||
notificationCount.my_issues
|
||||
: null,
|
||||
notificationCount,
|
||||
|
@ -159,7 +159,7 @@ class UserNotificationsServices extends APIService {
|
||||
async getUnreadNotificationsCount(workspaceSlug: string): Promise<{
|
||||
created_issues: number;
|
||||
my_issues: number;
|
||||
watching_notifications: number;
|
||||
watching_issues: number;
|
||||
}> {
|
||||
return this.get(`/api/workspaces/${workspaceSlug}/users/notifications/unread/`)
|
||||
.then((response) => response?.data)
|
||||
|
Loading…
Reference in New Issue
Block a user