We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1035d42 commit 48ac2d2Copy full SHA for 48ac2d2
src/app/api/filters.js
@@ -23,12 +23,16 @@ export const noFiltersApplied = (localFilter) => (
23
);
24
25
export function isFiltered(action, localFilter) {
26
- if (noFiltersApplied(localFilter) || typeof action.type.match !== 'function') return false;
+ if (
27
+ noFiltersApplied(localFilter) ||
28
+ typeof action !== 'string' && typeof action.type.match !== 'function'
29
+ ) return false;
30
31
const { whitelist, blacklist } = localFilter || window.devToolsOptions || {};
32
+ const actionType = action.type || action;
33
return (
- whitelist && !action.type.match(whitelist) ||
- blacklist && action.type.match(blacklist)
34
+ whitelist && !actionType.match(whitelist) ||
35
+ blacklist && actionType.match(blacklist)
36
37
}
38
0 commit comments