Skip to content

Commit

Permalink
Off-by-one when clicking next
Browse files Browse the repository at this point in the history
Last entry is length-1, not length.
  • Loading branch information
zenitraM committed Sep 8, 2023
1 parent e4c7d97 commit 01992d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/reports/import/Extract.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
return;
}
}
currentIndex = entries.length;
currentIndex = entries.length-1;
}else{
currentIndex += 1;
}
}
function submitOrNext() {
if (currentIndex < entries.length - 1) {
nextEntry();
Expand Down

0 comments on commit 01992d8

Please sign in to comment.