readonly default based on mapper type (#1534)
This commit is contained in:
parent
c61ba73781
commit
3b86616739
1 changed files with 3 additions and 1 deletions
|
@ -74,7 +74,9 @@ export const LdapMapperUserAttribute = ({
|
|||
>
|
||||
<Controller
|
||||
name="config.read-only"
|
||||
defaultValue={["true"]}
|
||||
defaultValue={
|
||||
mapperType === "user-attribute-ldap-mapper" ? ["true"] : ["false"]
|
||||
}
|
||||
control={form.control}
|
||||
render={({ onChange, value }) => (
|
||||
<Switch
|
||||
|
|
Loading…
Reference in a new issue