Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit33029c3

Browse files
fix: fix load more notifications only working once (#17094)
The "load more" button in the notifications inbox were only workingonce. After taking a look at the code the issue was found and fixed.
1 parent5c8cac9 commit33029c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎site/src/modules/notifications/NotificationsInbox/NotificationsInbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const NotificationsInbox: FC<NotificationsInboxProps> = ({
156156
error={error}
157157
isLoadingMoreNotifications={isLoadingMoreNotifications}
158158
hasMoreNotifications={Boolean(
159-
inboxRes&&inboxRes.notifications.length===NOTIFICATIONS_LIMIT,
159+
inboxRes&&inboxRes.notifications.length%NOTIFICATIONS_LIMIT===0,
160160
)}
161161
onRetry={refetch}
162162
onMarkAllAsRead={markAllAsReadMutation.mutate}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp