diff --git a/src/view-model/ratings-view-model.ts b/src/view-model/ratings-view-model.ts index d69e34a..56e9355 100644 --- a/src/view-model/ratings-view-model.ts +++ b/src/view-model/ratings-view-model.ts @@ -159,7 +159,7 @@ export class RatingsViewModel { scan = new Scan(index, img); this.scanArray.push(scan); this.scansByKeyPath[scanKeyPath] = scan; - this.scanIndicesByRating["none"].push(i); + this.scanIndicesByRating["none"].push(index); scan.listen((rating: Rating): void => { for (const r of ratings) { if (r === rating) {