Skip to content

Commit 7252477

Browse files
committed
Fix actionsBlacklist/Whitelist to be also string as per documentation
1 parent 4bd69c8 commit 7252477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/api/filters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export const FilterState = {
99
export function getLocalFilter(config) {
1010
if (config.actionsBlacklist || config.actionsWhitelist) {
1111
return {
12-
whitelist: config.actionsWhitelist && config.actionsWhitelist.join('|'),
13-
blacklist: config.actionsBlacklist && config.actionsBlacklist.join('|')
12+
whitelist: typeof config.actionsWhitelist === 'object' ? config.actionsWhitelist.join('|') : config.actionsWhitelist,
13+
blacklist: typeof config.actionsBlacklist === 'object' ? config.actionsBlacklist.join('|') : config.actionsBlacklist
1414
};
1515
}
1616
return undefined;

0 commit comments

Comments
 (0)