Use strict equality check for annotation offset in object lifecycle settings

This commit is contained in:
Josh Hawkins 2024-10-29 13:19:57 -05:00
parent abd22d2566
commit ca89bc0205

View File

@ -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 (