diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-07 12:21:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-07 12:21:09 +0900 |
commit | d995ab0030522f380d165f309ffc72b582366ddb (patch) | |
tree | 69a096e9a8610ae8966af05e91355efdd27ea811 /src/components/completion.js | |
parent | 482206f6c90985011b197623854b8bfbc26ee54c (diff) | |
parent | 9fb7bf96be786acfbad97f7c76bc423a401dd657 (diff) |
Merge pull request #19 from ueokande/content-and-background-redux-completely
Refactor: full redux on content and background
Diffstat (limited to 'src/components/completion.js')
-rw-r--r-- | src/components/completion.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/completion.js b/src/components/completion.js index 489061c..f527a84 100644 --- a/src/components/completion.js +++ b/src/components/completion.js @@ -6,15 +6,15 @@ export default class Completion { } update() { - let state = this.store.getState(); + let state = this.store.getState().console; if (JSON.stringify(this.prevState) === JSON.stringify(state)) { return; } this.wrapper.innerHTML = ''; - for (let i = 0; i < state.groups.length; ++i) { - let group = state.groups[i]; + for (let i = 0; i < state.completions.length; ++i) { + let group = state.completions[i]; let title = this.createCompletionTitle(group.name); this.wrapper.append(title); |