Skip to content

Commit a64e21d

Browse files
reportEmail not using the default user group in case of missing group declaration (#634)
1 parent 895d93c commit a64e21d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reports/reportEmail.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ export default class ReportEmail extends Report {
9090
getEmails = (content) => {
9191
const users = content.data
9292
.map(item => {
93-
if (item.matchedRule && item.matchedRule.group){
94-
return item.matchedRule.group;
93+
if (item.matchedRule){
94+
return item.matchedRule.group || "default";
9595
} else {
9696
return false;
9797
}

0 commit comments

Comments
 (0)