add mapper type to table

This commit is contained in:
mfrances 2021-04-16 14:08:11 -04:00
parent 46c60c1796
commit 75b3b0ebe6

View file

@ -37,7 +37,17 @@ export const LdapMapperList = () => {
parent: id, parent: id,
type: "org.keycloak.storage.ldap.mappers.LDAPStorageMapper", type: "org.keycloak.storage.ldap.mappers.LDAPStorageMapper",
}; };
return adminClient.components.find(testParams);
const mappersList = (await adminClient.components.find(testParams)).map(
(mapper) => {
return {
...mapper,
name: mapper.name,
type: mapper.providerId,
} as ComponentRepresentation;
}
);
return mappersList;
}; };
const [toggleDeleteDialog, DeleteConfirm] = useConfirmDialog({ const [toggleDeleteDialog, DeleteConfirm] = useConfirmDialog({