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 bf77639 commit e6fe433Copy full SHA for e6fe433
packages/node_modules/overmind/src/index.ts
@@ -350,9 +350,14 @@ export class Overmind<Config extends Configuration> implements BaseApp {
350
return Object.assign(aggr, {
351
[name]: Object.keys(actions[name] || {}).reduce(
352
(aggr, subName) =>
353
- Object.assign(aggr, {
354
- [subName]: actions[name][subName](operators),
355
- }),
+ Object.assign(
+ aggr,
+ typeof actions[name][subName] === 'function'
356
+ ? {
357
+ [subName]: actions[name][subName](operators),
358
+ }
359
+ : {}
360
+ ),
361
{}
362
),
363
})
0 commit comments