Skip to content

Commit 0cf5bf6

Browse files
committed
remove the case that never happens now
1 parent 4e2c328 commit 0cf5bf6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/traces/treemap/plot.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ function plotOne(gd, cd, element, transitionOpts) {
103103
y0 = barDifY + 0;
104104
y1 = barDifY + height;
105105
} else {
106-
var ref = clicked.zoomOut ? refRect : (
107-
upDown ? prevLookup[clicked.id] : prevLookdown[clicked.id]
108-
);
106+
var ref = clicked.zoomOut ? refRect : prevLookdown[clicked.id];
109107

110108
if(Object.keys(ref).length === 0 && // case of an empty object - happens when maxdepth is set
111109
!helpers.isHierarchyRoot(pt)

0 commit comments

Comments
 (0)