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

fix: nested boolean field isn't controlled #783

Merged
merged 1 commit into from
Nov 22, 2022
Merged

Conversation

letsbelopez
Copy link
Contributor

Issue #, if available:

Description of changes:

Give boolean fields the fully qualified name for the default value.

For example, in the case of nested fields, it was setting isChecked to the nested object so it was passing an object {} to isChecked which was causing errors with the UI Component. UI Component expects a boolean or an undefined value.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@letsbelopez letsbelopez requested a review from a team as a code owner November 22, 2022 01:32
@codecov-commenter
Copy link

Codecov Report

Merging #783 (5795558) into main (04cdcb3) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #783      +/-   ##
==========================================
+ Coverage   91.47%   91.48%   +0.01%     
==========================================
  Files         102      102              
  Lines        4080     4085       +5     
  Branches     1137     1138       +1     
==========================================
+ Hits         3732     3737       +5     
  Misses        326      326              
  Partials       22       22              
Impacted Files Coverage Δ
...ges/codegen-ui-react/lib/forms/component-helper.ts 97.36% <100.00%> (+0.39%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04cdcb3...5795558. Read the comment docs.

@letsbelopez letsbelopez merged commit fb943e8 into main Nov 22, 2022
@letsbelopez letsbelopez deleted the nestedBooleanFieldBug branch November 22, 2022 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants