소스 검색

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 년 전
부모
커밋
4320e79e25
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;