mirror of
https://github.com/tale/headplane.git
synced 2026-08-05 11:47:41 +00:00
fix: the login page would crash if OIDC is not enabled correctly
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user