diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-06 23:55:52 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-06 23:55:52 +0900 |
commit | 4cb17031d11d76275de51e31218fb87359e7d826 (patch) | |
tree | 626a976e303458daef90a5a5fac34a5185bc275e /src/components/console.js | |
parent | 10ad62e60698c5d53ffcf58ae6abd182f7d3fc9c (diff) |
[wip] remove STATE_UPDATE
Diffstat (limited to 'src/components/console.js')
-rw-r--r-- | src/components/console.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/console.js b/src/components/console.js index 177cfe5..3a7f88b 100644 --- a/src/components/console.js +++ b/src/components/console.js @@ -70,8 +70,8 @@ export default class ConsoleComponent { }); } - // TODO use store/reducer to update state. - update(state) { + update() { + let state = this.store.getState().console; if (!this.prevState.commandShown && state.commandShown) { this.showCommand(state.commandText); } else if (!state.commandShown) { |