Skip to content

Commit 2528aa6

Browse files
committed
Merge branch 'master' into texttemplate
2 parents 2f6bf8a + c91f88b commit 2528aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/scattergl/convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function convertTextStyle(trace, gd) {
132132
}
133133
}
134134
} else {
135-
if(trace.text.length < count) {
135+
if(Array.isArray(trace.text) && trace.text.length < count) {
136136
// if text array is shorter, we'll need to append to it, so let's slice to prevent mutating
137137
optsOut.text = trace.text.slice();
138138
} else {

0 commit comments

Comments
 (0)