You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Update src/filter-component.js
Co-Authored-By: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user