diff --git a/src/components/Container/ManageEmailsPage.vue b/src/components/Container/ManageEmailsPage.vue index 4e9b2442a..a2ff03cd8 100644 --- a/src/components/Container/ManageEmailsPage.vue +++ b/src/components/Container/ManageEmailsPage.vue @@ -346,7 +346,6 @@ export default { template = template || {}; this.currentTemplate = template; const {openSideModal} = useModal(); - this.$nextTick(() => openSideModal(EditTemplateModal, { title: this.currentTemplate @@ -409,10 +408,7 @@ export default { // Remove user group fields if current mailable does not support specifying user group access if (!this.currentMailable.canAssignUserGroupToTemplates) { templateForm.fields = templateForm.fields.filter( - (field) => field.name !== 'userGroupIds', - ); - templateForm.fields = templateForm.fields.filter( - (field) => field.name !== 'isUnrestricted', + (field) => !['userGroupIds', 'isUnrestricted'].includes(field.name), ); } diff --git a/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue b/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue index 6e7c9535c..6124c3cfa 100644 --- a/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue +++ b/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue @@ -10,10 +10,9 @@ type="checkbox" />