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}
|
||||
setExportStartTime={setExportStartTime}
|
||||
setExportEndTime={setExportEndTime}
|
||||
timelineCollapsed={motionOnly}
|
||||
dense={dense}
|
||||
>
|
||||
{segments}
|
||||
|
@ -28,6 +28,7 @@ export type ReviewTimelineProps = {
|
||||
exportEndTime?: number;
|
||||
setExportStartTime?: React.Dispatch<React.SetStateAction<number>>;
|
||||
setExportEndTime?: React.Dispatch<React.SetStateAction<number>>;
|
||||
timelineCollapsed?: boolean;
|
||||
dense: boolean;
|
||||
children: ReactNode;
|
||||
};
|
||||
@ -48,6 +49,7 @@ export function ReviewTimeline({
|
||||
setExportStartTime,
|
||||
exportEndTime,
|
||||
setExportEndTime,
|
||||
timelineCollapsed = false,
|
||||
dense,
|
||||
children,
|
||||
}: ReviewTimelineProps) {
|
||||
@ -105,6 +107,7 @@ export function ReviewTimeline({
|
||||
setDraggableElementTime: setHandlebarTime,
|
||||
initialScrollIntoViewOnly: onlyInitialHandlebarScroll,
|
||||
timelineDuration,
|
||||
timelineCollapsed: timelineCollapsed,
|
||||
timelineStartAligned,
|
||||
isDragging: isDraggingHandlebar,
|
||||
setIsDragging: setIsDraggingHandlebar,
|
||||
|
@ -82,7 +82,7 @@ export function useCameraMotionNextTimestamp(
|
||||
});
|
||||
|
||||
const noMotionRanges = useMemo(() => {
|
||||
if (!motionData || !reviewItems || !motionData) {
|
||||
if (!motionData?.length || !reviewItems) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user