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
|
<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"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue