Przeglądaj źródła

HUE-3359 [home] Document search is broken

Johan Ahlen 9 lat temu
rodzic
commit
b8c25d9c5a

+ 2 - 2
desktop/core/src/desktop/static/desktop/js/fileBrowser/hueFileEntry.js

@@ -226,7 +226,7 @@
         resultEntry.hasErrors(false);
         var newEntries = [];
 
-        $.each(data.children, function (idx, definition) {
+        $.each(data.documents, function (idx, definition) {
           var entry = new HueFileEntry({
             activeEntry: self.activeEntry,
             trashEntry: self.trashEntry,
@@ -241,7 +241,7 @@
           }
         });
 
-        resultEntry.entries(entries);
+        resultEntry.entries(newEntries);
         resultEntry.loading(false);
         resultEntry.loaded(true);
       },