mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: fix load more notifications only working once (#17094)
The "load more" button in the notifications inbox were only working once. After taking a look at the code the issue was found and fixed.
This commit is contained in:
@@ -156,7 +156,7 @@ export const NotificationsInbox: FC<NotificationsInboxProps> = ({
|
||||
error={error}
|
||||
isLoadingMoreNotifications={isLoadingMoreNotifications}
|
||||
hasMoreNotifications={Boolean(
|
||||
inboxRes && inboxRes.notifications.length === NOTIFICATIONS_LIMIT,
|
||||
inboxRes && inboxRes.notifications.length % NOTIFICATIONS_LIMIT === 0,
|
||||
)}
|
||||
onRetry={refetch}
|
||||
onMarkAllAsRead={markAllAsReadMutation.mutate}
|
||||
|
||||
Reference in New Issue
Block a user