parent
8eb631b9d9
commit
587c9d9470
1 changed files with 4 additions and 2 deletions
|
@ -47,7 +47,9 @@ export type Role = RoleRepresentation & {
|
|||
export default function AddMapper() {
|
||||
const { t } = useTranslation("identity-providers");
|
||||
|
||||
const form = useForm<IdPMapperRepresentationWithAttributes>();
|
||||
const form = useForm<IdPMapperRepresentationWithAttributes>({
|
||||
shouldUnregister: true,
|
||||
});
|
||||
const {
|
||||
handleSubmit,
|
||||
register,
|
||||
|
@ -86,7 +88,7 @@ export default function AddMapper() {
|
|||
id: id!,
|
||||
alias: alias!,
|
||||
},
|
||||
{ ...identityProviderMapper, name: currentMapper?.name! }
|
||||
{ ...identityProviderMapper }
|
||||
);
|
||||
addAlert(t("mapperSaveSuccess"), AlertVariant.success);
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in a new issue