cedc077ce8279ee92431c6a56243496c1d0fa4fc max Wed May 21 07:32:53 2025 -0700 addressing a bug that Bob found in right-click - hide others, no redmine yet diff --git src/hg/js/utils.js src/hg/js/utils.js index eeebbe63898..b062c77b8e7 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -560,31 +560,31 @@ loneParents.push([topParentName, compLinks.families[parentName]]); doneParents.push(topParentName); } } else for (var child of compLinks.families[parentName]) // do not hide tracks of lone parents that are not in delTracks if (delTracks.includes(child)) others.push(child); } else { others.push(delTrack); } } o = {}; o.loneParents = loneParents; - o.others = others; + o.others = Array.from(new Set(others)); // remove duplicates (rare bug in the above) return o; } function aryFind(ary,val) {// returns the index of a value on the array or -1; for (var ix=0; ix < ary.length; ix++) { if (ary[ix] === val) { return ix; } } return -1; } function aryRemove(ary,vals) { // removes one or more variables that are found in the array