We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bd69c8 commit 7252477Copy full SHA for 7252477
src/app/api/filters.js
@@ -9,8 +9,8 @@ export const FilterState = {
9
export function getLocalFilter(config) {
10
if (config.actionsBlacklist || config.actionsWhitelist) {
11
return {
12
- whitelist: config.actionsWhitelist && config.actionsWhitelist.join('|'),
13
- 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
14
};
15
}
16
return undefined;
0 commit comments