Skip to content

Commit 4453455

Browse files
committed
replace .map call by Lib.repeat
1 parent 27f379f commit 4453455

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/traces/sankey/defaults.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
6262
'rgba(255, 255, 255, 0.6)' :
6363
'rgba(0, 0, 0, 0.2)';
6464

65-
coerceLink('color', linkOut.value.map(function() {
66-
return defaultLinkColor;
67-
}));
65+
coerceLink('color', Lib.repeat(defaultLinkColor, linkOut.value.length));
6866

6967
handleDomainDefaults(traceOut, layout, coerce);
7068

0 commit comments

Comments
 (0)