Skip to content

Commit

Permalink
Fix actionsWhitelist/actionsBlacklist when provided as null
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Nov 29, 2018
1 parent 8abb346 commit dcc9495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/api/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export const FilterState = {
export function getLocalFilter(config) {
if (config.actionsBlacklist || config.actionsWhitelist) {
return {
whitelist: typeof config.actionsWhitelist === 'object' ? config.actionsWhitelist.join('|') : config.actionsWhitelist,
blacklist: typeof config.actionsBlacklist === 'object' ? config.actionsBlacklist.join('|') : config.actionsBlacklist
whitelist: Array.isArray(config.actionsWhitelist) ? config.actionsWhitelist.join('|') : config.actionsWhitelist,
blacklist: Array.isArray(config.actionsBlacklist) ? config.actionsBlacklist.join('|') : config.actionsBlacklist
};
}
return undefined;
Expand Down

0 comments on commit dcc9495

Please sign in to comment.