forked from Github/frigate
Backend and webui fixes (#11309)
* Ensure that items without end times are set to not have a snapshot * Save full frame if no frame is currently saved * Webui fixes * Cleanup
This commit is contained in:
@@ -25,7 +25,7 @@ export function useCameraPreviews(
|
||||
|
||||
const { data: allPreviews } = useSWR<Preview[]>(
|
||||
fetchPreviews
|
||||
? `preview/${camera}/start/${timeRange.after}/end/${timeRange.before}`
|
||||
? `preview/${camera}/start/${Math.round(timeRange.after)}/end/${Math.round(timeRange.before)}`
|
||||
: null,
|
||||
{ revalidateOnFocus: false, revalidateOnReconnect: false },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user