Skip to content

Commit 8bbda20

Browse files
committed
fix off by one error
1 parent 492a1c3 commit 8bbda20

File tree

1 file changed

+1
-1
lines changed
  • src/components/ImageSegmentation

1 file changed

+1
-1
lines changed

src/components/ImageSegmentation/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default ({
7373
if (containerProps.onExit) containerProps.onExit(nextAction)
7474
})
7575
const onNextImage = useEventCallback((output) => {
76-
if (selectedIndex + 1 > samples.length) {
76+
if (selectedIndex + 1 >= samples.length) {
7777
onExit(output, "go-to-next")
7878
} else {
7979
saveCurrentIndexAnnotation(output)

0 commit comments

Comments
 (0)