element-pro-components icon indicating copy to clipboard operation
element-pro-components copied to clipboard

undefined value for fields that are not edited

Open sigalalg1 opened this issue 2 years ago • 1 comments

Describe the bug

Hi, first of all, thanks for this very useful code! this is very helpful. I am encountering an issue. after building a form for a json schema object, all fields, including optional, are getting values. Fields that are not edited are getting undefined values.

This is very problematic in our code. Can this be configured somehow?

thanks Sigal

Related version

element-pro-components: 1.2.12

Link to minimal reproduction

No response

Steps to Reproduce the Bug

  1. build a form from simple schema
  2. edit one field
  3. submit
  4. see that all empty fields that were not edited, are sent as undefined

Expected behavior

build a form, edit only one field click submit only one change should appear

Additional context

No response

sigalalg1 avatar Aug 12 '23 18:08 sigalalg1

Currently, you can manually remove the undefined data

tolking avatar Aug 13 '23 11:08 tolking