Browse Source

HUE-6003 [assist] Append instead of replace when selecting a value from search autocomplete

Johan Ahlen 8 năm trước cách đây
mục cha
commit
91c7a0f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      desktop/core/src/desktop/templates/assist_search.mako

+ 1 - 1
desktop/core/src/desktop/templates/assist_search.mako

@@ -373,7 +373,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER
               }
               if (typeof data.results !== 'undefined') {
                 data.results.forEach(function (result) {
-                  values.push({ data: { label: result.hue_name, icon: NAV_TYPE_ICONS[result.type],  description: result.hue_description }, value: result.originalName });
+                  values.push({ data: { label: result.hue_name, icon: NAV_TYPE_ICONS[result.type],  description: result.hue_description }, value: beforePartial + result.originalName });
                 });
               }