From 73da3d9b203a0af9986cecae0f0168fd28220a5f Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:33:09 -0500 Subject: [PATCH] Use strict equality check for annotation offset in object lifecycle settings (#14667) --- .../components/overlay/detail/AnnotationSettingsPane.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 (