Use strict equality check for annotation offset in object lifecycle settings (#14667)

This commit is contained in:
Josh Hawkins 2024-10-29 13:33:09 -05:00 committed by GitHub
parent e67b7a6d5e
commit 73da3d9b20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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