Skip to content

Reset page on showOnlyAdmin change#5559

Open
KroZen-Dev wants to merge 1 commit intopterodactyl:1.0-developfrom
KroZen-Dev:fix/dashboard-pagination-reset
Open

Reset page on showOnlyAdmin change#5559
KroZen-Dev wants to merge 1 commit intopterodactyl:1.0-developfrom
KroZen-Dev:fix/dashboard-pagination-reset

Conversation

@KroZen-Dev
Copy link

@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.
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.

1 participant