Fix fetching of generated preview video (#13498)

This commit is contained in:
Nicolas Mowen
2024-09-02 09:18:58 -05:00
committed by GitHub
parent 5239790835
commit 21a50cc452
2 changed files with 55 additions and 53 deletions
+1 -1
View File
@@ -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