mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 13:15:25 +03:00
Fix wrong camera bug
This commit is contained in:
parent
94e548e98d
commit
f784029158
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user