Frun1na opened a new pull request, #4931:
URL: https://github.com/apache/rocketmq-dashboard/pull/4931

   ### Which Issue(s) This PR Fixes
   
   - Fixes #(issue to be linked)
   
   ### Brief Description
   
   `useConversationList.reload()` refetches the current page without clamping. 
Archiving or deleting the only row of the last page leaves the list pinned to 
an out-of-range page: zero items, total > 0, page indicator stuck. The server 
clamps `page >= 1` only (`AiConversationService.list`), so the client now snaps 
back to the last valid page when a successful refetch returns no rows for a 
page > 1 - the same clamp the consumer group page already performs.
   
   ### How Did You Test This Change?
   
   ```
   cd web && npx vitest run src/pages/ai/hooks/useConversationList.test.ts
   
   Test Files  1 passed (1)
        Tests  7 passed (7)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to