Don't have padding at end for in progress reviews

This commit is contained in:
Nicolas Mowen 2025-08-31 09:11:00 -06:00
parent 5b8b096c13
commit e135d4cf9f

View File

@ -315,9 +315,9 @@ export function InProgressPreview({
const apiHost = useApiHost();
const sliderRef = useRef<HTMLDivElement | null>(null);
const { data: previewFrames } = useSWR<string[]>(
`preview/${camera}/start/${Math.floor(startTime) - PREVIEW_PADDING}/end/${
Math.ceil(endTime ?? timeRange.before) + PREVIEW_PADDING
}/frames`,
`preview/${camera}/start/${Math.floor(startTime) - PREVIEW_PADDING}/end/${Math.ceil(
endTime ?? timeRange.before,
)}/frames`,
{ revalidateOnFocus: false },
);