Преглед изворни кода

HUE-7286 [editor] Only show the main type for columns in the tooltip

With complex types the tooltip would otherwise be too long
Johan Ahlen пре 8 година
родитељ
комит
4320e79
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -4421,7 +4421,7 @@
                             if (details && details.extended_columns) {
                               details.extended_columns.every(function (col) {
                                 if (col.name.toLowerCase() === colName) {
-                                  colType = col.type;
+                                  colType = col.type.match(/^[^<]*/g)[0];
                                   return false;
                                 }
                                 return true;