Fix error on no completion items
This commit is contained in:
parent
f555e1348c
commit
8db779388f
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ const defaultState = {
|
|||
};
|
||||
|
||||
const nextSelection = (state) => {
|
||||
if (state.completions.length === 0) {
|
||||
return [-1, -1];
|
||||
};
|
||||
if (state.groupSelection < 0) {
|
||||
return [0, 0];
|
||||
}
|
||||
|
|
Reference in a new issue