diff --git a/js/src/router/guards/register-guard.ts b/js/src/router/guards/register-guard.ts index 9cde41b92..07b886b5c 100644 --- a/js/src/router/guards/register-guard.ts +++ b/js/src/router/guards/register-guard.ts @@ -12,6 +12,7 @@ export const beforeRegisterGuard: NavigationGuard = async (to, from, next) => { ); onResult(({ data }) => { + if (!data) return next(); const { config } = data; if (!config.registrationsOpen && !config.registrationsAllowlist) {