Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resorting search page table by a new column / direction should reset pagination to page 1 #3665

Closed
theosanderson opened this issue Feb 11, 2025 · 1 comment · Fixed by #3667

Comments

@theosanderson
Copy link
Member

Currently you stay on the same arbitrary page, which is confusing

@chaoran-chen
Copy link
Member

Duplicate of #2044 ;)

theosanderson added a commit that referenced this issue Feb 11, 2025
Fixes #3665

Update `setOrderByField` and `setOrderDirection` functions to reset pagination to page 1 when sorting.

* Modify `setOrderByField` to set the page state to '1' when changing the order by field.
* Modify `setOrderDirection` to set the page state to '1' when changing the order direction.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/loculus-project/loculus/issues/3665?shareId=XXXX-XXXX-XXXX-XXXX).
theosanderson added a commit that referenced this issue Feb 11, 2025
Fixes #3665

Update `setOrderByField` and `setOrderDirection` functions to reset pagination to page 1 when sorting.

* Modify `setOrderByField` to set the page state to '1' when changing the order by field.
* Modify `setOrderDirection` to set the page state to '1' when changing the order direction.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/loculus-project/loculus/issues/3665?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants