aboutsummaryrefslogtreecommitdiff
path: root/src/components/console.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-06 23:55:52 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-06 23:55:52 +0900
commit4cb17031d11d76275de51e31218fb87359e7d826 (patch)
tree626a976e303458daef90a5a5fac34a5185bc275e /src/components/console.js
parent10ad62e60698c5d53ffcf58ae6abd182f7d3fc9c (diff)
[wip] remove STATE_UPDATE
Diffstat (limited to 'src/components/console.js')
-rw-r--r--src/components/console.js4
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) {