We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26d1197 commit 2bb7ef4Copy full SHA for 2bb7ef4
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