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

HUE-7784 [dashboard] Fix JS error on right assist filtering

Enrico Berti пре 8 година
родитељ
комит
0c8aa50
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      desktop/core/src/desktop/templates/assist.mako

+ 6 - 0
desktop/core/src/desktop/templates/assist.mako

@@ -2854,6 +2854,12 @@ from desktop.views import _ko
 
         self.filteredTables = AssistantUtils.getFilteredTablesPureComputed(self);
 
+        self.someLoading = ko.pureComputed(function () {
+          return self.activeTables().some(function (table) {
+            return table.loading() || (!table.hasEntries() && !table.hasErrors());
+          });
+        });
+
         var navigationSettings = {
           showStats: true,
           rightAssist: true