Skip to content

Commit 79aec5b

Browse files
Improve pagination metadata copy
Co-authored-by: Copilot <[email protected]>
1 parent 537d9f9 commit 79aec5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/api/state/actions/notification_actions.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ AppState _updateNotificationInState(
174174
}) {
175175
final updated = state.notifications.copyWith(
176176
items: newItems,
177-
totalItems: totalItems ?? state.items.totalItems,
178-
totalPages: state.items.totalPages,
179-
currentPage: state.items.currentPage,
180-
pageSize: state.items.pageSize,
177+
totalItems: totalItems ?? state.notifications.totalItems,
178+
totalPages: state.notifications.totalPages,
179+
currentPage: state.notifications.currentPage,
180+
pageSize: state.notifications.pageSize,
181181
);
182182
return state.copyWith(
183183
notifications: updated,

0 commit comments

Comments
 (0)