瀏覽代碼

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

Enrico Berti 9 年之前
父節點
當前提交
d44e9b7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;