Skip to content

Commit ef3898f

Browse files
fix(overmind-devtools): fix initial loadup
1 parent d1658fa commit ef3898f

File tree

1 file changed

+3
-3
lines changed
  • packages/node_modules/overmind-devtools/src/components/State

1 file changed

+3
-3
lines changed

packages/node_modules/overmind-devtools/src/components/State/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ const ComputedWrapper = ({ children }) => (
4040
const State: React.SFC<Connect> = ({ app }) => (
4141
<Wrapper>
4242
<Inspector
43-
value={app.state.currentApp.state}
43+
value={app.state.currentApp.state || {}}
4444
expandedPaths={app.state.expandedStatePaths}
4545
onToggleExpand={app.actions.toggleExpandState}
4646
renderPaths={
4747
Object.assign(
4848
{},
49-
Object.keys(app.state.currentApp.derived).reduce(
49+
Object.keys(app.state.currentApp.derived || {}).reduce(
5050
(aggr, key) =>
5151
Object.assign(aggr, {
5252
[key]: (children) => (
@@ -55,7 +55,7 @@ const State: React.SFC<Connect> = ({ app }) => (
5555
}),
5656
{}
5757
),
58-
Object.keys(app.state.currentApp.computed).reduce(
58+
Object.keys(app.state.currentApp.computed || {}).reduce(
5959
(aggr, key) =>
6060
Object.assign(aggr, {
6161
[key]: (children) => (

0 commit comments

Comments
 (0)