Skip to content

Commit 9fe2979

Browse files
fix(overmind): fix fork issue
1 parent 890d8a5 commit 9fe2979

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/node_modules/overmind/src/operators.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { OperatorContextFunction } from './internalTypes'
2-
import * as utils from './utils'
32
import {
43
action,
5-
createOperator,
6-
operatorStopped,
74
createContext,
8-
operatorStarted,
9-
createNextPath,
105
createMutationOperator,
6+
createNextPath,
7+
createOperator,
8+
operatorStarted,
9+
operatorStopped,
1110
} from './operator'
1211
import { IContext, IOperator } from './types'
12+
import * as utils from './utils'
1313

1414
export function pipe<AI, AO = AI>(
1515
a: OperatorContextFunction<AI, AO>
@@ -351,7 +351,7 @@ export function fork<T extends { [key: string]: any }, M extends keyof T, K>(
351351
next(null, value, {
352352
path: {
353353
name: String(key),
354-
operator: (paths as any)[key],
354+
operator: (paths as any)[value[key]],
355355
},
356356
})
357357
}

0 commit comments

Comments
 (0)