diff --git a/web/src/components/overlay/detail/AnnotationSettingsPane.tsx b/web/src/components/overlay/detail/AnnotationSettingsPane.tsx index dd5898c34..79d078c1f 100644 --- a/web/src/components/overlay/detail/AnnotationSettingsPane.tsx +++ b/web/src/components/overlay/detail/AnnotationSettingsPane.tsx @@ -111,13 +111,13 @@ export function AnnotationSettingsPane({ function onApply(values: z.infer) { if ( !values || - values.annotationOffset == null || - values.annotationOffset == "" || + values.annotationOffset === null || + values.annotationOffset === "" || !config ) { return; } - setAnnotationOffset(values.annotationOffset); + setAnnotationOffset(values.annotationOffset ?? 0); } return (