Skip to content

Commit

Permalink
removes null coalescing from includes in filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley14 committed Feb 12, 2020
1 parent ad56892 commit 23c459e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const createCreateRulesBulkRoute = (server: ServerFacade): Hapi.ServerRou

const rules = await Promise.all(
ruleDefinitions
.filter(rule => !dupes.includes(rule.rule_id ?? ''))
.filter(rule => rule.rule_id == null || !dupes.includes(rule.rule_id))
.map(async payloadRule => {
const {
description,
Expand Down

0 comments on commit 23c459e

Please sign in to comment.