Skip to content

Commit

Permalink
Fix issue where groups are missing when creating a new template
Browse files Browse the repository at this point in the history
  • Loading branch information
taslangraham committed Nov 21, 2024
1 parent cf3b437 commit 6a1f74a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Container/ManageEmailsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,11 @@ export default {
}
if (field.name === 'userGroupIds') {
// Existing template will have a list of assignable user groups in its data.
// However, for new templates, we get the assignable user groups from the mailable that we are creating the template for
field.assignableUserGroups =
this.currentTemplate['assignableTemplateUserGroups'];
this.currentTemplate['assignableTemplateUserGroups'] ||
this.currentMailable['assignableTemplateUserGroups'];
field.assignedUserGroupIds =
this.currentTemplate['assignedUserGroupIds'] || [];
field.isUnrestricted =
Expand Down

0 comments on commit 6a1f74a

Please sign in to comment.