From abf53cdd0b9d84997e0930aa285252efb951f9af Mon Sep 17 00:00:00 2001 From: Kyle Baran Date: Tue, 18 Jun 2024 14:20:48 -0700 Subject: [PATCH] loadWebappInjection skipped for OAuth callback pages (#10407) As there may not be any login information to fetch projects with, fetching projects needs to be skipped. --- packages/projects/loadWebappInjection.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/projects/loadWebappInjection.ts b/packages/projects/loadWebappInjection.ts index 8609085b8f..a8a05c30b6 100644 --- a/packages/projects/loadWebappInjection.ts +++ b/packages/projects/loadWebappInjection.ts @@ -29,6 +29,7 @@ import { Engine } from '@etherealengine/ecs/src/Engine' import { loadConfigForProject } from './loadConfigForProject' export const loadWebappInjection = async () => { + if (window.location.pathname.startsWith('/auth/oauth')) return [] const projects = await Engine.instance.api.service(projectsPath).find() return ( await Promise.all(