diff --git a/js/apps/admin-ui/src/organizations/IdentityProviderSelect.tsx b/js/apps/admin-ui/src/organizations/IdentityProviderSelect.tsx index 43b41f4c39..0f0320d069 100644 --- a/js/apps/admin-ui/src/organizations/IdentityProviderSelect.tsx +++ b/js/apps/admin-ui/src/organizations/IdentityProviderSelect.tsx @@ -48,7 +48,6 @@ export const IdentityProviderSelect = ({ const { control, getValues, - setValue, formState: { errors }, } = useFormContext(); const values: string[] | undefined = getValues(name!); @@ -201,7 +200,6 @@ export const IdentityProviderSelect = ({ selected={field.value} onSelect={(_, v) => { const idp = v as IdentityProviderRepresentation; - setValue("hideOnLogin", idp.hideOnLogin); const option = idp.alias!; if (variant !== "typeaheadMulti") { const removed = field.value.includes(option); diff --git a/js/apps/admin-ui/src/organizations/LinkIdentityProviderModal.tsx b/js/apps/admin-ui/src/organizations/LinkIdentityProviderModal.tsx index b97f9252ef..287480ffd3 100644 --- a/js/apps/admin-ui/src/organizations/LinkIdentityProviderModal.tsx +++ b/js/apps/admin-ui/src/organizations/LinkIdentityProviderModal.tsx @@ -148,6 +148,7 @@ export const LinkIdentityProviderModal = ({ name="hideOnLogin" label={t("hideOnLoginPage")} labelIcon={t("hideOnLoginPageHelp")} + defaultValue={true} />