diff --git a/packages/core/helper-plugin/lib/src/components/GenericInput/index.js b/packages/core/helper-plugin/lib/src/components/GenericInput/index.js index b7d5b491cd..e63cada7a8 100644 --- a/packages/core/helper-plugin/lib/src/components/GenericInput/index.js +++ b/packages/core/helper-plugin/lib/src/components/GenericInput/index.js @@ -146,8 +146,7 @@ const GenericInput = ({ hint={hint} required={required} onChange={(json) => { - // Default to null when the field is not required and there is no input value - const value = !attribute.required && !json.length ? 'null' : json; + const value = !attribute.required && !json.length ? null : json; onChange({ target: { name, value } }); }} minHeight={pxToRem(252)}