mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
Use strict equality check for annotation offset in object lifecycle settings
This commit is contained in:
parent
abd22d2566
commit
ca89bc0205
@ -111,13 +111,13 @@ export function AnnotationSettingsPane({
|
||||
function onApply(values: z.infer<typeof formSchema>) {
|
||||
if (
|
||||
!values ||
|
||||
values.annotationOffset == null ||
|
||||
values.annotationOffset == "" ||
|
||||
values.annotationOffset === null ||
|
||||
values.annotationOffset === "" ||
|
||||
!config
|
||||
) {
|
||||
return;
|
||||
}
|
||||
setAnnotationOffset(values.annotationOffset);
|
||||
setAnnotationOffset(values.annotationOffset ?? 0);
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user