Skip to content

Commit

Permalink
function-tree does not have computedState
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Feb 24, 2019
1 parent f3a0eb5 commit bd9f1dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cerebral-debugger",
"version": "3.0.0",
"version": "3.0.1",
"description": "Cerebral Debugger",
"private": true,
"main": "electron/main.js",
Expand Down
4 changes: 4 additions & 0 deletions src/app/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export function setComputedStateUpdate({ props, state }) {
}

export function setComputedState({ props, state }) {
if (!props.data.initialComputedState) {
return
}

state.set(
'computedState',
Object.keys(props.data.initialComputedState).reduce((converted, key) => {
Expand Down

0 comments on commit bd9f1dc

Please sign in to comment.