Skip to content

Commit e0cb7e4

Browse files
Merge pull request cerebral#412 from geirsagberg/patch-3
fix(overmind): fix crash in proxifyEffects
2 parents 4f16b0a + ee0396f commit e0cb7e4

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)