Fix wrong camera bug

This commit is contained in:
Nicolas Mowen 2024-03-27 07:17:44 -06:00
parent 94e548e98d
commit f784029158

View File

@ -111,7 +111,9 @@ export default function PreviewThumbnailPlayer({
} else { } else {
// the second preview is longer, return the second if it exists // the second preview is longer, return the second if it exists
if (firstIndex < allPreviews.length - 1) { if (firstIndex < allPreviews.length - 1) {
return allPreviews[firstIndex + 1]; return allPreviews.find(
(preview, idx) => idx > firstIndex && preview.camera == review.camera,
);
} }
return undefined; return undefined;