Skip to content

Commit

Permalink
Fix wrong camera bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Mar 27, 2024
1 parent 94e548e commit f784029
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/components/player/PreviewThumbnailPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ export default function PreviewThumbnailPlayer({
} else {
// the second preview is longer, return the second if it exists
if (firstIndex < allPreviews.length - 1) {
return allPreviews[firstIndex + 1];
return allPreviews.find(
(preview, idx) => idx > firstIndex && preview.camera == review.camera,
);
}

return undefined;
Expand Down

0 comments on commit f784029

Please sign in to comment.