mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-31 16:12:19 +03:00
Fix fetching of generated preview video (#13498)
This commit is contained in:
@@ -29,7 +29,7 @@ export function useCameraPreviews(
|
||||
{ revalidateOnFocus: autoRefresh, revalidateOnReconnect: autoRefresh },
|
||||
);
|
||||
|
||||
return allPreviews;
|
||||
return fetchPreviews ? allPreviews : [];
|
||||
}
|
||||
|
||||
// we need to add a buffer of 5 seconds to the end preview times
|
||||
|
||||
Reference in New Issue
Block a user