Skip to content

Commit ee0396f

Browse files
authored
fix(overmind): fix crash in proxifyEffects
fixes cerebral#397
1 parent 4ddf1a4 commit ee0396f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node_modules/overmind/src/proxyfyEffects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function proxifyEffects<Effects>(
2222
const name = path.split('.')
2323
const method = name.pop()
2424
return cb({
25-
func: target.bind(thisArg[ORIGIN_TARGET]),
25+
func: target.bind(thisArg ? thisArg[ORIGIN_TARGET] : undefined),
2626
effectId,
2727
name: name.join('.'),
2828
method,

0 commit comments

Comments
 (0)