Update comment

This commit is contained in:
Mark Kaylor 2023-02-03 11:53:13 +01:00
parent caa4720005
commit 101b1072c2

View File

@ -146,7 +146,7 @@ const GenericInput = ({
hint={hint}
required={required}
onChange={(json) => {
// Default to null when the field is required and there is no input value
// Default to null when the field is not required and there is no input value
const value = !attribute.required && !json.length ? 'null' : json;
onChange({ target: { name, value } });
}}