From 725247782588272b4162728d76e3fe44db1d7352 Mon Sep 17 00:00:00 2001 From: Zalmoxisus Date: Mon, 26 Nov 2018 20:49:01 +0200 Subject: [PATCH] Fix actionsBlacklist/Whitelist to be also string as per documentation --- src/app/api/filters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/filters.js b/src/app/api/filters.js index 6bd1da3e..189d0fc5 100644 --- a/src/app/api/filters.js +++ b/src/app/api/filters.js @@ -9,8 +9,8 @@ export const FilterState = { export function getLocalFilter(config) { if (config.actionsBlacklist || config.actionsWhitelist) { return { - whitelist: config.actionsWhitelist && config.actionsWhitelist.join('|'), - blacklist: config.actionsBlacklist && config.actionsBlacklist.join('|') + whitelist: typeof config.actionsWhitelist === 'object' ? config.actionsWhitelist.join('|') : config.actionsWhitelist, + blacklist: typeof config.actionsBlacklist === 'object' ? config.actionsBlacklist.join('|') : config.actionsBlacklist }; } return undefined;