Skip to content

Commit

Permalink
Fix issue with custom action view filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
cshfang committed Nov 27, 2024
1 parent a6b07bb commit 105c332
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ export const getViews = (

const customActionViews = !isObject(customConfigs)
? {}
: Object.entries(customConfigs).reduce((acc, config) => {
: Object.entries(customConfigs).reduce((acc, [key, config]) => {
// ignore custom actions that are only handlers
return !isObject(config) || isFunction(config[1])
return !isObject(config) || isFunction(config)
? acc
: {
...acc,
[config[0]]: views?.[config[1]?.viewName as keyof Views],
};
: { ...acc, [key]: views?.[config.viewName as keyof Views] };
}, {});

return {
Expand Down

0 comments on commit 105c332

Please sign in to comment.