mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Use strict equality check for annotation offset in object lifecycle settings (#14667)
This commit is contained in:
parent
e67b7a6d5e
commit
73da3d9b20
@ -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