Skip to content

Commit 33fd07d

Browse files
committed
return null to avoid an extra call
1 parent c757ef7 commit 33fd07d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/scatter3d/convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ function _arrayToColor(color) {
347347

348348
function arrayToColor(colors) {
349349
if(!Lib.isArrayOrTypedArray(colors)) {
350-
return _arrayToColor(colors);
350+
return null;
351351
}
352352

353353
if((colors.length === 4) && (typeof colors[0] === 'number')) {

0 commit comments

Comments
 (0)