Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add empty values into result data #100

Open
irrbd opened this issue Dec 5, 2018 · 2 comments
Open

Add empty values into result data #100

irrbd opened this issue Dec 5, 2018 · 2 comments
Labels
RFT Ready for test

Comments

@irrbd
Copy link
Contributor

irrbd commented Dec 5, 2018

The result object doesn't have any key-value couples with an empty string value.
So we can't change old values for empty values simply if we use a general component with the Form-component.

VitaliyMatveev added a commit that referenced this issue Dec 12, 2018
@VitaliyMatveev VitaliyMatveev added the RFT Ready for test label Dec 19, 2018
@irrbd
Copy link
Contributor Author

irrbd commented Mar 5, 2019

The example of a scheme:

{
 type: 'object',
 properties: {
   middle_name: {
     type: 'string',
     title: 'Отчество',
   },
 },
}

The resulted object for this scheme after update for the version 1.2.6:

{ 
  middle_name: null
}

The resulted object for this scheme after update for the version 1.3.1:

{ 
  middle_name: undefined
}

The problem
The example of a scheme:

{
  type: 'object',
  properties: {
     has_processing_unit: {
      title: 'Есть отдел обработки',
      type: 'toggle',
    },
  },
}

The resulted object if we change the true-value to the false-value for the version 1.2.6:

{ 
  has_processing_unit: null
}

The resulted object if we change the true-value to the false-value for the version 1.3.1:

{ 
  has_processing_unit: undefined
}

@VitaliyMatveev
Copy link
Owner

VitaliyMatveev commented Mar 10, 2019

@irrbd I don't understand what you expecting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFT Ready for test
Projects
None yet
Development

No branches or pull requests

2 participants