From 87c0cf233c0afed783d4151a73cb1fd252a0088a Mon Sep 17 00:00:00 2001 From: Nicolas Chamo Date: Fri, 17 Apr 2020 23:59:38 -0300 Subject: [PATCH] Update src/filter-component.js Co-Authored-By: Michael Telatynski <7t3chguy@googlemail.com> --- src/filter-component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter-component.js b/src/filter-component.js index 4bf2a16c6..8ff760673 100644 --- a/src/filter-component.js +++ b/src/filter-component.js @@ -109,7 +109,7 @@ FilterComponent.prototype._checkFields = const allowed_values = self[name]; if (allowed_values && allowed_values.length > 0) { - const anyMatch = allowed_values.map(match_func).reduce((a, b) => a || b); + const anyMatch = allowed_values.some(match_func); if (!anyMatch) { return false; }