diff --git a/apps/admin-ui/src/identity-providers/add/AddMapper.tsx b/apps/admin-ui/src/identity-providers/add/AddMapper.tsx index 58b4e2cf01..d4a4cecab6 100644 --- a/apps/admin-ui/src/identity-providers/add/AddMapper.tsx +++ b/apps/admin-ui/src/identity-providers/add/AddMapper.tsx @@ -69,9 +69,7 @@ export default function AddMapper() { useState(); const save = async (idpMapper: IdentityProviderMapperRepresentation) => { - const mapper = convertFormValuesToObject( - idpMapper - ) as IdentityProviderMapperRepresentation; + const mapper = convertFormValuesToObject(idpMapper); const attributes = JSON.stringify(idpMapper.config.attributes ?? []); const claims = JSON.stringify(idpMapper.config.claims ?? []); @@ -171,6 +169,7 @@ export default function AddMapper() { "config.attributes", JSON.parse(mapper.config.attributes || "{}") ); + form.setValue("config.claims", JSON.parse(mapper.config.claims || "{}")); }; if (!mapperTypes || !currentMapper) {