Browse Source

HUE-8888 [editor] Do not show no result message when filtering matches all values

In query result record popup viewer.
Romain 5 năm trước cách đây
mục cha
commit
ca356c56d9

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

@@ -344,8 +344,8 @@ from metadata.conf import has_optimizer, OPTIMIZER
 
     $('#rowDetailsModal .hue-modal-search').jHueDelayedInput(function () {
       var $t = $('#rowDetailsModal').find('table');
-      $('#rowDetailsModal .no-results').addClass('hide');
       $t.find('tr').removeClass('hide');
+      $('#rowDetailsModal .no-results').addClass('hide');
       var shown = 0;
       $t.find('tr').each(function () {
         if ($(this).text().toLowerCase().indexOf($('#rowDetailsModal .hue-modal-search').val().toLowerCase()) == -1) {