Jelajahi Sumber

HUE-7312 [core] Fix scroll to column on sample popup

Enrico Berti 8 tahun lalu
induk
melakukan
245f220

+ 1 - 0
desktop/core/src/desktop/templates/sql_context_popover.mako

@@ -635,6 +635,7 @@ from metadata.conf import has_navigator
 
 
         var scrollPubSub = huePubSub.subscribe('context.popover.scroll.to.column', function (colName) {
         var scrollPubSub = huePubSub.subscribe('context.popover.scroll.to.column', function (colName) {
           if (typeof self.sample.fetchedData() === 'undefined') {
           if (typeof self.sample.fetchedData() === 'undefined') {
+            self.activeTab('sample');
             self.sample.fetch(function (data) {
             self.sample.fetch(function (data) {
               self.initializeSamplesTable(data);
               self.initializeSamplesTable(data);
               window.setTimeout(function () {
               window.setTimeout(function () {