Skip to content

Commit

Permalink
fix filter instead of map
Browse files Browse the repository at this point in the history
  • Loading branch information
epipav committed Jan 3, 2024
1 parent d04b25a commit 2defa18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export async function getMergeSuggestions(
if (member.string_arr_emails && member.string_arr_emails.length > 0) {
identitiesPartialQuery.should.push({
terms: {
keyword_emails: member.string_arr_emails.map((email: string) => email && email !== null),
keyword_emails: member.string_arr_emails.filter((email: string) => email && email !== null),
},
})
}
Expand Down

0 comments on commit 2defa18

Please sign in to comment.