Skip to content

Commit bb97de6

Browse files
committed
bug fix issue 4258
1 parent bead43f commit bb97de6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/streamtube/convert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ function convert(scene, trace) {
123123

124124
tubeOpts.meshgrid = [meshx, meshy, meshz];
125125

126-
if(trace.starts) {
127-
var slen = trace._slen;
126+
var slen = trace._slen;
127+
if(slen) {
128128
tubeOpts.startingPositions = zip3(
129129
toDataCoords(trace.starts.x.slice(0, slen), 'xaxis'),
130130
toDataCoords(trace.starts.y.slice(0, slen), 'yaxis'),

0 commit comments

Comments
 (0)