Skip to content

Commit 6dd358d

Browse files
fix(overmind): fix path on forEach as well for production
1 parent 8b4a594 commit 6dd358d

File tree

1 file changed

+5
-4
lines changed
  • packages/node_modules/overmind/src

1 file changed

+5
-4
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,10 +1052,11 @@ export function forEach<
10521052
createContext(
10531053
lastContext,
10541054
context.value,
1055-
lastContext.execution.path.slice(
1056-
0,
1057-
lastContext.execution.path.length - 1
1058-
)
1055+
lastContext.execution.path &&
1056+
lastContext.execution.path.slice(
1057+
0,
1058+
lastContext.execution.path.length - 1
1059+
)
10591060
)
10601061
)
10611062
}

0 commit comments

Comments
 (0)