Explorar el Código

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 hace 8 años
padre
commit
4320e79e25
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;