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