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 1d21111 commit ac1cf44Copy full SHA for ac1cf44
1 file changed
src/enhanceActions.ts
@@ -7,12 +7,12 @@ export interface OnAction {
7
export function enhanceActions(
8
onAction: OnAction,
9
runId: string,
10
- actions: any,
+ actions: any = {},
11
prefix?: string
12
): any {
13
var namespace = prefix ? prefix + "." : ""
14
- return Object.keys(actions || {}).reduce(function(otherActions, name) {
15
- var fnName = actions[name].name || name;
+ return Object.keys(actions).reduce(function(otherActions, name) {
+ var fnName = actions[name].name || name
16
var namedspacedName = namespace + fnName
17
var action = actions[name]
18
otherActions[name] =
0 commit comments