Skip to content

Commit 34a86af

Browse files
fix(overmind): fix issue with devtools error
1 parent 1f67f81 commit 34a86af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node_modules/overmind/src/config/statechart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ export function statechart<C extends IConfiguration, Charts extends Statecharts
474474

475475

476476

477-
if (process.env.NODE_ENV === 'development' && currentInstance.devtools) {
477+
if (process.env.NODE_ENV === 'development' && currentInstance && currentInstance.devtools) {
478478
currentInstance.devtools.send({
479479
type: 'chart',
480480
data: {

0 commit comments

Comments
 (0)