Explorar o código

HUE-4667 [editor] Geo plotting of states is case sensitive

Enrico Berti %!s(int64=9) %!d(string=hai) anos
pai
achega
d44e9b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/ko.charts.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/ko.charts.js

@@ -648,7 +648,7 @@
 
         $(_data).each(function (cnt, item) {
           addToLegend(getHighestCategoryValue(cnt, item));
-          var _place = typeof item.label == "String" ? item.label.toUpperCase() : item.label;
+          var _place = typeof item.label == "string" ? item.label.toUpperCase() : item.label;
           if (_place != null) {
             if (_scope != "world" && _scope != "usa" && _scope != "europe" && _place.indexOf(".") == -1) {
               _place = HueGeo.getISOAlpha2(_scope) + "." + _place;