Skip to content

Commit 8b4a594

Browse files
fix(overmind): skip slicing path when in production
1 parent 7fab957 commit 8b4a594

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
@@ -1111,10 +1111,11 @@ export function parallel<Input, ThisConfig extends IConfiguration = Config>(
11111111
createContext(
11121112
lastContext,
11131113
context.value,
1114-
lastContext.execution.path.slice(
1115-
0,
1116-
lastContext.execution.path.length - 1
1117-
)
1114+
lastContext.execution.path &&
1115+
lastContext.execution.path.slice(
1116+
0,
1117+
lastContext.execution.path.length - 1
1118+
)
11181119
)
11191120
)
11201121
}

0 commit comments

Comments
 (0)