Sfoglia il codice sorgente

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

Enrico Berti 8 anni fa
parent
commit
0c8aa50
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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