department-of-veterans-affairs / va-forms-system-core

VA Forms System Core will be a React library hosted in NPM that will allow engineers and designers to easily interact with Forms inside of vets-website.
https://department-of-veterans-affairs.github.io/va-forms-system-core/
6 stars 4 forks source link

Initialize data with undefined instead of empty string #543

Closed harshil1793 closed 2 years ago

harshil1793 commented 2 years ago

Description

When we submit the data we remove the fields which are unnecessary or empty input fields which are optional. Similar to vets website we want to remove all unnecessary fields from the object before we submit to vets-api.

As part of this story, we want to either write a logic to remove the empty strings or initialize data without empty strings.

Tasks

Acceptance Criteria

bjmccotter7192 commented 2 years ago

https://github.com/department-of-veterans-affairs/va-forms-system-core/pull/578

va-vsp-bot commented 2 years ago

:tada: This issue has been resolved in version 1.4.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

va-vsp-bot commented 2 years ago

:tada: This issue has been resolved in version 1.6.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: