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: get grand child from component tree #394

Merged
merged 2 commits into from
Feb 9, 2022

Conversation

dpilch
Copy link
Member

@dpilch dpilch commented Feb 9, 2022

getComponentFromComponentTree would fail for grandchild case. The .find would cause the parent of the grand child to be returned in place because .find. Change this to a map and then find on the mapped values fixes this.

@dpilch dpilch requested a review from a team February 9, 2022 21:51
@codecov-commenter
Copy link

Codecov Report

Merging #394 (5b0b967) into tagged-release/q1-release (54b4978) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                      Coverage Diff                      @@
##           tagged-release/q1-release     #394      +/-   ##
=============================================================
+ Coverage                      93.71%   93.77%   +0.05%     
=============================================================
  Files                             43       43              
  Lines                           1656     1655       -1     
  Branches                         357      357              
=============================================================
  Hits                            1552     1552              
+ Misses                           102      101       -1     
  Partials                           2        2              
Impacted Files Coverage Δ
packages/codegen-ui-react/lib/workflow/mutation.ts 98.95% <100.00%> (+1.02%) ⬆️

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 54b4978...5b0b967. Read the comment docs.

@alharris-at alharris-at merged commit 2a0e625 into tagged-release/q1-release Feb 9, 2022
@alharris-at alharris-at deleted the fix-component-tree branch February 9, 2022 22:34
@dpilch dpilch mentioned this pull request Feb 24, 2022
@alharris-at alharris-at mentioned this pull request Feb 24, 2022
alharris-at pushed a commit that referenced this pull request Feb 24, 2022
* fix: get grand child from component tree

* test: add snapshot
alharris-at pushed a commit that referenced this pull request Feb 25, 2022
* fix: get grand child from component tree

* test: add snapshot
alharris-at pushed a commit that referenced this pull request Feb 25, 2022
* fix: get grand child from component tree

* test: add snapshot
alharris-at pushed a commit that referenced this pull request Feb 25, 2022
* fix: get grand child from component tree

* test: add snapshot
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.

3 participants