We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26d1197 + 2bb7ef4 commit fcf5c26Copy full SHA for fcf5c26
src/FilterMonitor.js
@@ -10,10 +10,11 @@ export default class FilterMonitor extends Component {
10
blacklist: PropTypes.array
11
};
12
13
- isFiltered(action) {
+ isFiltered(actionType) {
14
+ var type = actionType || '';
15
return (
- this.props.whitelist && action.match(this.props.whitelist.join('|')) ||
16
- this.props.blacklist && !action.match(this.props.blacklist.join('|'))
+ this.props.whitelist && type.match(this.props.whitelist.join('|')) ||
17
+ this.props.blacklist && !type.match(this.props.blacklist.join('|'))
18
);
19
}
20
0 commit comments