瀏覽代碼

HUE-5814 [assist] Fix issue with infinite scrolling in the hdfs assist panel

Johan Åhlén 8 年之前
父節點
當前提交
8c7926c
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 1 - 2
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -4572,9 +4572,8 @@
         }
         lastScrollTop = $container.scrollTop();
 
-        var lastEndIndex = endIndex;
         setStartAndEndFromScrollTop();
-        if (typeof options.fetchMore !== 'undefined' && endIndex !== lastEndIndex && endIndex === allEntries.length - 1) {
+        if (typeof options.fetchMore !== 'undefined' && endIndex === allEntries.length - 1) {
           options.fetchMore();
         }