mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-30 23:59:02 +03:00
Make deleting review items delete recordings as well (#10707)
* Make deleting review items delete recordings as well * Fix wrong camera bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user