Fix error on no completion items

jh-changes
Shin'ya Ueoka 7 years ago
parent f555e1348c
commit 8db779388f
  1. 3
      src/console/reducers/index.js

@ -11,6 +11,9 @@ const defaultState = {
};
const nextSelection = (state) => {
if (state.completions.length === 0) {
return [-1, -1];
};
if (state.groupSelection < 0) {
return [0, 0];
}