diff --git a/resources/scripts/components/dashboard/DashboardContainer.tsx b/resources/scripts/components/dashboard/DashboardContainer.tsx index c04ca0820..7c9d266c2 100644 --- a/resources/scripts/components/dashboard/DashboardContainer.tsx +++ b/resources/scripts/components/dashboard/DashboardContainer.tsx @@ -25,8 +25,8 @@ export default () => { const [ showOnlyAdmin, setShowOnlyAdmin ] = usePersistedState(`${uuid}:show_all_servers`, false); const { data: servers, error } = useSWR>( - [ '/api/client/servers', showOnlyAdmin, page ], - () => getServers({ page, type: showOnlyAdmin ? 'admin' : undefined }), + [ '/api/client/servers', (showOnlyAdmin && rootAdmin), page ], + () => getServers({ page, type: (showOnlyAdmin && rootAdmin) ? 'admin' : undefined }), ); useEffect(() => {