Skip to content

Commit 54269a6

Browse files
committed
Fix if condition
1 parent 0527052 commit 54269a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/sankey/plot.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function linkHoveredStyle(d, sankey, visitNodes, sankeyLink) {
7070

7171
sankeyLink.each(function(curLink) {
7272
var label = curLink.link.label;
73-
if(label !== undefined) {
73+
if(label !== '') {
7474
ownTrace(sankey, d)
7575
.selectAll('.' + cn.sankeyLink)
7676
.filter(function(l) {return l.link.label === label;})
@@ -95,7 +95,7 @@ function linkNonHoveredStyle(d, sankey, visitNodes, sankeyLink) {
9595

9696
sankeyLink.each(function(curLink) {
9797
var label = curLink.link.label;
98-
if(label !== undefined) {
98+
if(label !== '') {
9999
ownTrace(sankey, d)
100100
.selectAll('.' + cn.sankeyLink)
101101
.filter(function(l) {return l.link.label === label;})

0 commit comments

Comments
 (0)