Skip to content

Commit

Permalink
remove duplicate date from info box. Closes #401
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Aug 4, 2017
1 parent 811d5ed commit 6010085
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/tree/infoPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ const getBranchTimeJSX = (d, temporalConfidence) => {
* @return {JSX} to be displayed
*/
const displayColorBy = (d, distanceMeasure, temporalConfidence, colorByConfidence, colorBy) => {
if (colorBy === "num_date" || colorBy.slice(0, 2) === "gt") {
if (colorBy !== distanceMeasure) {
/* i.e. colorBy is date and branch lengths are divergence - should still show node date */
return getBranchTimeJSX(d, temporalConfidence);
}
return null;
if (colorBy.slice(0, 2) === "gt") {
return null; /* muts ahave already been displayed */
}
if (colorBy === "num_date") {
/* if colorBy is date and branch lengths are divergence we should still show node date */
return (colorBy !== distanceMeasure) ? getBranchTimeJSX(d, temporalConfidence) : null;
}
if (colorByConfidence === true) {
const lkey = colorBy + "_confidence";
Expand Down

0 comments on commit 6010085

Please sign in to comment.