Skip to content

Commit 5d42de5

Browse files
committed
table values may be left unspecified
1 parent 18dac1f commit 5d42de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/table/data_split_helpers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ exports.splitToPanels = function(d) {
5151

5252
exports.splitToCells = function(d) {
5353
var fromTo = rowFromTo(d);
54-
return d.values.slice(fromTo[0], fromTo[1]).map(function(v, i) {
54+
return (d.values || []).slice(fromTo[0], fromTo[1]).map(function(v, i) {
5555
// By keeping identical key, a DOM node removal, creation and addition is spared, important when visible
5656
// grid has a lot of elements (quadratic with xcol/ycol count).
5757
// But it has to be busted when `svgUtil.convertToTspans` is used as it reshapes cell subtrees asynchronously,

0 commit comments

Comments
 (0)