mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-06 11:36:44 +03:00
Fix TypeError
This commit is contained in:
@@ -106,7 +106,7 @@ export function SSOSettings() {
|
||||
apiRequest<{ enabled: boolean }>('/auth/header-status').catch(() => ({ enabled: false }))
|
||||
]);
|
||||
|
||||
setProviders(providersRes);
|
||||
setProviders(Array.isArray(providersRes) ? providersRes : providersRes?.providers || []);
|
||||
setHeaderAuthEnabled(headerAuthStatus.enabled);
|
||||
} catch (error) {
|
||||
showErrorToast(error, toast);
|
||||
|
||||
Reference in New Issue
Block a user