Skip to content

Commit a34ca45

Browse files
committed
heatmap: fix - check trace exists before checking type
1 parent f878387 commit a34ca45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/heatmap/clean_2d_array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = function clean2dArray(zOld, transpose, trace, xa, ya) {
3232

3333
var xMap = function(i) {return i;};
3434
var yMap = function(i) {return i;};
35-
if(trace.type === 'heatmap') {
35+
if(trace && trace.type === 'heatmap') {
3636
if(ya && ya.type === 'category') {
3737
yMap = function(i) {return trace._y[i];};
3838
}

0 commit comments

Comments
 (0)