commit
4324517948
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ export abstract class Memory {
|
|||
return 0;
|
||||
}
|
||||
let topScore = items[0].score[0];
|
||||
for (let i = 1; i < items.length; i++) {
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
const { score, completion: suggestion } = items[i];
|
||||
if (score[0] !== topScore) {
|
||||
// stop when leaving the group of top matches
|
||||
|
|
Loading…
Reference in a new issue