mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-24 09:50:19 -06: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>) {
|
function onApply(values: z.infer<typeof formSchema>) {
|
||||||
if (
|
if (
|
||||||
!values ||
|
!values ||
|
||||||
values.annotationOffset == null ||
|
values.annotationOffset === null ||
|
||||||
values.annotationOffset == "" ||
|
values.annotationOffset === "" ||
|
||||||
!config
|
!config
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setAnnotationOffset(values.annotationOffset);
|
setAnnotationOffset(values.annotationOffset ?? 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user