Skip to content

fix: move to the last page after deleting all groups of a filtered last page - #3700

Closed
AlexAndBear wants to merge 1 commit into
mainfrom
fix/admin-groups-lastpage
Closed

AlexAndBear wants to merge 1 commit into
mainfrom
fix/admin-groups-lastpage

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Page clamping: the groups list moves to its last page when the current page is out of range. It counts the filtered and sorted list, so deleting the last groups of a filtered last page no longer leaves an empty page without pagination.
  • Delete action: removed the page reset from the delete action because it counted all groups instead of the filtered ones.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest)
  • test case 1: filtered list with 1 group per page on page 2: removing the group there moves to page 1

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear

Copy link
Copy Markdown
Member Author

Combined into #3711: its pagination clamp also covers the filtered groups list, so the extra watcher here is no longer needed. #3711 now fixes #3680 too.

@AlexAndBear
AlexAndBear deleted the fix/admin-groups-lastpage branch October 12, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleting all groups on the last page of a filtered list leaves an empty page without pagination

1 participant