Skip to content

Reset page on showOnlyAdmin change#5559

Merged
DaneEveritt merged 2 commits intopterodactyl:1.0-developfrom
KroZen-Dev:fix/dashboard-pagination-reset
Feb 12, 2026
Merged

Reset page on showOnlyAdmin change#5559
DaneEveritt merged 2 commits intopterodactyl:1.0-developfrom
KroZen-Dev:fix/dashboard-pagination-reset

Conversation

@KroZen-Dev
Copy link
Contributor

@KroZen-Dev KroZen-Dev commented Feb 8, 2026

This pull request introduces a small improvement to the DashboardContainer.tsx component, ensuring that the page number resets to 1 whenever the showOnlyAdmin filter changes. This helps maintain correct pagination behavior when toggling the admin view.

  • Pagination behavior improvement:
    • Added a useEffect hook to reset the page to 1 when the showOnlyAdmin state changes in DashboardContainer.tsx.

🔗 Linked Issues: #5557

Reset page to 1 when showOnlyAdmin changes.
@DaneEveritt DaneEveritt merged commit 151ac01 into pterodactyl:1.0-develop Feb 12, 2026
@KroZen-Dev KroZen-Dev deleted the fix/dashboard-pagination-reset branch February 12, 2026 17:52
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 this pull request may close these issues.

2 participants