diff --git a/src/customizations/volto-form-block/components/Field.jsx b/src/customizations/volto-form-block/components/Field.jsx index aa078a9..81eaebb 100644 --- a/src/customizations/volto-form-block/components/Field.jsx +++ b/src/customizations/volto-form-block/components/Field.jsx @@ -54,7 +54,11 @@ const Field = (props) => { } = props; let { value } = props; // A value of `null` is a touched field with no value - if (typeof props.default_value === "boolean" && value !== null && value === undefined) { + if ( + Object.hasOwn(props, 'default_value') && + value !== null && + value === undefined + ) { value = props.default_value; } const intl = useIntl();