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

HUE-8485 [search] Simplify complex type display in widget formula editor

Johan Ahlen пре 7 година
родитељ
комит
b04e5b129b

+ 5 - 1
desktop/core/src/desktop/templates/ko_components/ko_simple_ace_editor.mako

@@ -510,10 +510,14 @@ from desktop.views import _ko
 
           if (parseResult.suggestFields) {
             self.fieldAccessor().forEach(function (field) {
+              var type = field.type();
+              if (type.indexOf('<') !== -1) {
+                type = type.substring(0, type.indexOf('<'));
+              }
               syncEntries.push({
                 category: CATEGORIES.FIELD,
                 value: field.name(),
-                meta: field.type(),
+                meta: type,
                 weightAdjust: 0,
                 popular: ko.observable(false),
                 details: field