fix: the login page would crash if OIDC is not enabled correctly

This commit is contained in:
Aarnav Tale
2025-12-04 10:39:24 -05:00
parent 199ef46ee1
commit 6ad0847653
+1 -1
View File
@@ -37,7 +37,7 @@ export async function loader({ request, context }: Route.LoaderArgs) {
const isOidcConnectorEnabled = context.oidcConnector?.isValid;
const oidcErrorCodes = !isOidcConnectorEnabled
? context.oidcConnector!.errors
? (context.oidcConnector?.errors ?? [])
: [];
return {