Skip to content

Commit

Permalink
Merge pull request #1898 from nextstrain/james/entropy-bug
Browse files Browse the repository at this point in the history
Bugfix in Entropy panel when window resizes
  • Loading branch information
jameshadfield authored Nov 13, 2024
2 parents 1cf70f8 + 932b3df commit eafae7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/entropy/entropyD3.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ EntropyChart.prototype._setZoomCoordinates = function _setZoomCoordinates(overri

EntropyChart.prototype._setSelectedNodes = function _setSelectedNodes() {
this.selectedNodes = [];
if (!this.selectedPositions.length) return;
if (!this.selectedPositions.length || !this.bars) return;
if (this.aa) { /* P R O T E I N S */
for (const node of this.bars) {
for (const position of this.selectedPositions) {
Expand Down

0 comments on commit eafae7f

Please sign in to comment.