Skip to content

Commit d0a3506

Browse files
committed
ensure updateOnSelect on choroplethmapbox - addressing dash 1097
1 parent 71938c3 commit d0a3506

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/traces/choroplethmapbox/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ module.exports = {
1313
styleOnSelect: function(_, cd) {
1414
if(cd) {
1515
var trace = cd[0].trace;
16-
trace._glTrace.updateOnSelect(cd);
16+
if(
17+
trace._glTrace &&
18+
trace._glTrace.updateOnSelect
19+
) {
20+
trace._glTrace.updateOnSelect(cd);
21+
}
1722
}
1823
},
1924

0 commit comments

Comments
 (0)