Parcourir la source

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 il y a 8 ans
Parent
commit
4320e79e25

+ 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;