We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 447abec commit fe8a3f9Copy full SHA for fe8a3f9
src/plots/geo/index.js
@@ -49,7 +49,7 @@ exports.plot = function plotGeo(gd) {
49
geo = fullLayout[geoId]._subplot;
50
51
// If geo is not instantiated, create one!
52
- if(geo === undefined) {
+ if(!geo) {
53
geo = new Geo({
54
id: geoId,
55
graphDiv: gd,
src/plots/ternary/index.js
@@ -41,7 +41,7 @@ exports.plot = function plotTernary(gd) {
41
ternary = fullLayout[ternaryId]._subplot;
42
43
// If ternary is not instantiated, create one!
44
- if(ternary === undefined) {
+ if(!ternary) {
45
ternary = new Ternary({
46
id: ternaryId,
47
0 commit comments