mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-15 11:32:09 +03:00
Don't have padding at end for in progress reviews
This commit is contained in:
parent
5b8b096c13
commit
e135d4cf9f
@ -315,9 +315,9 @@ export function InProgressPreview({
|
|||||||
const apiHost = useApiHost();
|
const apiHost = useApiHost();
|
||||||
const sliderRef = useRef<HTMLDivElement | null>(null);
|
const sliderRef = useRef<HTMLDivElement | null>(null);
|
||||||
const { data: previewFrames } = useSWR<string[]>(
|
const { data: previewFrames } = useSWR<string[]>(
|
||||||
`preview/${camera}/start/${Math.floor(startTime) - PREVIEW_PADDING}/end/${
|
`preview/${camera}/start/${Math.floor(startTime) - PREVIEW_PADDING}/end/${Math.ceil(
|
||||||
Math.ceil(endTime ?? timeRange.before) + PREVIEW_PADDING
|
endTime ?? timeRange.before,
|
||||||
}/frames`,
|
)}/frames`,
|
||||||
{ revalidateOnFocus: false },
|
{ revalidateOnFocus: false },
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user