mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix missing collapsed prop after refactor (#10751)
This commit is contained in:
parent
37394fbe19
commit
7d3b481181
@ -185,6 +185,7 @@ export function MotionReviewTimeline({
|
|||||||
exportEndTime={exportEndTime}
|
exportEndTime={exportEndTime}
|
||||||
setExportStartTime={setExportStartTime}
|
setExportStartTime={setExportStartTime}
|
||||||
setExportEndTime={setExportEndTime}
|
setExportEndTime={setExportEndTime}
|
||||||
|
timelineCollapsed={motionOnly}
|
||||||
dense={dense}
|
dense={dense}
|
||||||
>
|
>
|
||||||
{segments}
|
{segments}
|
||||||
|
@ -28,6 +28,7 @@ export type ReviewTimelineProps = {
|
|||||||
exportEndTime?: number;
|
exportEndTime?: number;
|
||||||
setExportStartTime?: React.Dispatch<React.SetStateAction<number>>;
|
setExportStartTime?: React.Dispatch<React.SetStateAction<number>>;
|
||||||
setExportEndTime?: React.Dispatch<React.SetStateAction<number>>;
|
setExportEndTime?: React.Dispatch<React.SetStateAction<number>>;
|
||||||
|
timelineCollapsed?: boolean;
|
||||||
dense: boolean;
|
dense: boolean;
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
};
|
};
|
||||||
@ -48,6 +49,7 @@ export function ReviewTimeline({
|
|||||||
setExportStartTime,
|
setExportStartTime,
|
||||||
exportEndTime,
|
exportEndTime,
|
||||||
setExportEndTime,
|
setExportEndTime,
|
||||||
|
timelineCollapsed = false,
|
||||||
dense,
|
dense,
|
||||||
children,
|
children,
|
||||||
}: ReviewTimelineProps) {
|
}: ReviewTimelineProps) {
|
||||||
@ -105,6 +107,7 @@ export function ReviewTimeline({
|
|||||||
setDraggableElementTime: setHandlebarTime,
|
setDraggableElementTime: setHandlebarTime,
|
||||||
initialScrollIntoViewOnly: onlyInitialHandlebarScroll,
|
initialScrollIntoViewOnly: onlyInitialHandlebarScroll,
|
||||||
timelineDuration,
|
timelineDuration,
|
||||||
|
timelineCollapsed: timelineCollapsed,
|
||||||
timelineStartAligned,
|
timelineStartAligned,
|
||||||
isDragging: isDraggingHandlebar,
|
isDragging: isDraggingHandlebar,
|
||||||
setIsDragging: setIsDraggingHandlebar,
|
setIsDragging: setIsDraggingHandlebar,
|
||||||
|
@ -82,7 +82,7 @@ export function useCameraMotionNextTimestamp(
|
|||||||
});
|
});
|
||||||
|
|
||||||
const noMotionRanges = useMemo(() => {
|
const noMotionRanges = useMemo(() => {
|
||||||
if (!motionData || !reviewItems || !motionData) {
|
if (!motionData?.length || !reviewItems) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user