1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

Update src/filter-component.js

Co-Authored-By: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
Nicolas Chamo
2020-04-17 23:59:38 -03:00
committed by GitHub
parent 145cd7894b
commit 87c0cf233c

View File

@@ -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;
}