When the joint frequency data was added as a 3rd source of truth for frequency information, the function that merges exome and genome data was modified to preferentially use the joint values if they exist. This caused the table to not update AC and AN values when a user de-selected either the exomes or genomes.
This PR passes an additional prop to the merging function to have it only preferentially use the joint data when both the exome and genome data are selected by the user. This way, when a source is de-selected, the function falls back to using only the data source selected.
Resolves #1639
When the
joint
frequency data was added as a 3rd source of truth for frequency information, the function that merges exome and genome data was modified to preferentially use thejoint
values if they exist. This caused the table to not update AC and AN values when a user de-selected either the exomes or genomes.This PR passes an additional prop to the merging function to have it only preferentially use the
joint
data when both the exome and genome data are selected by the user. This way, when a source is de-selected, the function falls back to using only the data source selected.