We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a9706 commit 151ac01Copy full SHA for 151ac01
resources/scripts/components/dashboard/DashboardContainer.tsx
@@ -29,6 +29,10 @@ export default () => {
29
() => getServers({ page, type: showOnlyAdmin && rootAdmin ? 'admin' : undefined })
30
);
31
32
+ useEffect(() => {
33
+ setPage(1);
34
+ }, [showOnlyAdmin]);
35
+
36
useEffect(() => {
37
if (!servers) return;
38
if (servers.pagination.currentPage > 1 && !servers.items.length) {
0 commit comments