diff --git a/site/pages/projects/index.tsx b/site/pages/projects/index.tsx index 42df98f666ddf..bf67deb52502b 100644 --- a/site/pages/projects/index.tsx +++ b/site/pages/projects/index.tsx @@ -19,13 +19,9 @@ const ProjectsPage: React.FC = () => { const styles = useStyles() const router = useRouter() const { me, signOut } = useUser(true) - const { data, error } = useSWR("/api/v2/projects") + const { data: projects, error } = useSWR("/api/v2/projects") const { data: orgs, error: orgsError } = useSWR("/api/v2/users/me/organizations") - // TODO: The API call is currently returning `null`, which isn't ideal - // - it breaks checking for data presence with SWR. - const projects = data || [] - if (error) { return } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy