mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-07 22:05:44 +03:00
fix setter function
This commit is contained in:
parent
082685b33d
commit
ee68752756
@ -235,18 +235,12 @@ function AnnotationSettings({
|
||||
: "mx-1 max-h-[75dvh] overflow-hidden rounded-t-2xl px-4 pb-4"
|
||||
}
|
||||
{...(isDesktop ? { align: "end" } : {})}
|
||||
data-annotation-popover
|
||||
>
|
||||
<AnnotationSettingsPane
|
||||
event={search as unknown as Event}
|
||||
annotationOffset={annotationOffset}
|
||||
setAnnotationOffset={(value) => {
|
||||
if (typeof value === "function") {
|
||||
const newValue = value(annotationOffset);
|
||||
setAnnotationOffset(newValue);
|
||||
} else {
|
||||
setAnnotationOffset(value);
|
||||
}
|
||||
}}
|
||||
setAnnotationOffset={setAnnotationOffset}
|
||||
/>
|
||||
</Content>
|
||||
</Overlay>
|
||||
|
||||
@ -8,7 +8,7 @@ export interface DetailStreamContextType {
|
||||
camera: string;
|
||||
annotationOffset: number; // milliseconds
|
||||
setSelectedObjectIds: React.Dispatch<React.SetStateAction<string[]>>;
|
||||
setAnnotationOffset: (ms: number) => void;
|
||||
setAnnotationOffset: React.Dispatch<React.SetStateAction<number>>;
|
||||
toggleObjectSelection: (id: string | undefined) => void;
|
||||
isDetailMode: boolean;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user