CCGE-BOADICEA / pedigreejs

A web tool for building pedigrees, https://ccge-boadicea.github.io/pedigreejs/
GNU General Public License v3.0
59 stars 42 forks source link

Adding/deleting parents causes display issue #158

Closed ryan-hdez closed 11 months ago

ryan-hdez commented 11 months ago

Hi,

I’ve found a reproducible bug that occurs when starting w/ the initial, 3-person pedigree (mother, father, child). The issue generally occurs as follows:

If a partner (for someone in the second generation) was added before Bullet 1 or between Bullets 1 & 2, the pedigree display scrambles, and the newly added partner is incorrectly shown to be consanguineous.

An example case would be if we added parents for “father” [paternal grandparents], added a new partner for “mother”, deleted the parents for “father” [paternal grandparents], then added parents for “mother” [maternal grandparents].

Any idea why this might be happening? Thanks!

~~ @daniellebraun

tcarver commented 11 months ago

Thanks @daniellebraun Please see the fix