Skip to content

Commit ca3b4f4

Browse files
monferaetpinard
authored andcommitted
handle trace with no points, resulting in invisible trace and node3 undefined
1 parent 96d0c0e commit ca3b4f4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/traces/choropleth/select.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ module.exports = function selectPoints(searchInfo, polygon) {
4646
}
4747
}
4848

49-
node3.selectAll('path').style('opacity', function(d) {
50-
return d.dim ? DESELECTDIM : 1;
51-
});
49+
if(node3) {
50+
node3.selectAll('path').style('opacity', function (d) {
51+
return d.dim ? DESELECTDIM : 1;
52+
});
53+
}
5254

5355
return selection;
5456
};

0 commit comments

Comments
 (0)