mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-21 08:15:17 +00:00
♻️ do not edit tags if readonly
This commit is contained in:
@@ -252,13 +252,15 @@ export function EditPolicyOtpEmailSectionForm({
|
|||||||
.emails ?? []
|
.emails ?? []
|
||||||
}
|
}
|
||||||
setTags={(newEmails) => {
|
setTags={(newEmails) => {
|
||||||
form.setValue(
|
if (!readonly) {
|
||||||
"emails",
|
form.setValue(
|
||||||
newEmails as [
|
"emails",
|
||||||
Tag,
|
newEmails as [
|
||||||
...Tag[]
|
Tag,
|
||||||
]
|
...Tag[]
|
||||||
);
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
allowDuplicates={false}
|
allowDuplicates={false}
|
||||||
sortTags={true}
|
sortTags={true}
|
||||||
|
|||||||
Reference in New Issue
Block a user