LibreChat icon indicating copy to clipboard operation
LibreChat copied to clipboard

[Bug]: Prompt Library's pagination does not work if you use the filter

Open meroo36 opened this issue 7 months ago • 0 comments

What happened?

You can not use the pagination if you use the filter if you are on a pageNumber bigger than 1. I think the problem can be fixed by resetting the pagination state or the usePromptGroupsInfiniteQuery hook.

Steps to Reproduce

  1. Go to Prompts page.
  2. Add new prompts and refresh the page, so you have more than 10 prompts so you can use the pagination.
  3. Skip the next page.
  4. Use the filter.

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Screenshots

https://github.com/danny-avila/LibreChat/assets/44726724/bd9f1b60-489b-4470-a639-868bc3fa1b32

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

meroo36 avatar Jul 08 '24 11:07 meroo36