fix cancel error on empty new
This commit is contained in:
parent
58882f35f8
commit
9155b8bfc7
1 changed files with 7 additions and 3 deletions
|
@ -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"
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue