mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 17:30:06 +00:00
misc: added proper error handling
This commit is contained in:
@@ -43,8 +43,10 @@ export const OrgAuthTab = withPermission(
|
||||
const { data: samlConfig, isLoading: isLoadingSamlConfig } = useGetSSOConfig(
|
||||
currentOrg?.id ?? ""
|
||||
);
|
||||
const { data: ldapConfig, isLoading: isLdapConfig } = useGetLDAPConfig(currentOrg?.id ?? "");
|
||||
const areConfigsLoading = isLoadingOidcConfig || isLoadingSamlConfig || isLdapConfig;
|
||||
const { data: ldapConfig, isLoading: isLoadingLdapConfig } = useGetLDAPConfig(
|
||||
currentOrg?.id ?? ""
|
||||
);
|
||||
const areConfigsLoading = isLoadingOidcConfig || isLoadingSamlConfig || isLoadingLdapConfig;
|
||||
|
||||
const shouldDisplaySection = (method: LoginMethod) =>
|
||||
!enabledLoginMethods || enabledLoginMethods.includes(method);
|
||||
|
||||
Reference in New Issue
Block a user