fix cancel error on empty new

This commit is contained in:
mfrances 2021-04-16 15:11:01 -04:00
parent 58882f35f8
commit 9155b8bfc7

View file

@ -374,8 +374,12 @@ export const LdapMapperDetails = () => {
<Button <Button
variant="link" variant="link"
onClick={() => onClick={() =>
history.push( isNew
`/${realm}/user-federation/ldap/${mapping!.parentId}/mappers` ? history.goBack()
: history.push(
`/${realm}/user-federation/ldap/${
mapping!.parentId
}/mappers`
) )
} }
data-testid="ldap-cancel" data-testid="ldap-cancel"