Pārlūkot izejas kodu

HUE-6817 [editor] Do a better column name match for the scroll to column functionality

Enrico Berti 8 gadi atpakaļ
vecāks
revīzija
3a8dabb

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -2169,7 +2169,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
 
   function scrollToColumn(linkElement, index) {
     var $resultTable = $(linkElement).parents(".snippet").find("table.resultTable:eq(0)");
-    var _text = $.trim($(linkElement).text().split(" ")[0]);
+    var _text = $.trim($(linkElement).text());
     var _col = $resultTable.find("th").filter(function () {
       return $.trim($(this).text()) == _text;
     });