Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
loadWebappInjection skipped for OAuth callback pages (#10407)
Browse files Browse the repository at this point in the history
As there may not be any login information to fetch projects with, fetching projects
needs to be skipped.
  • Loading branch information
barankyle authored Jun 18, 2024
1 parent ba9c614 commit abf53cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/projects/loadWebappInjection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit abf53cd

Please sign in to comment.