Ver código fonte

AMBARI-6312. Hosts page: paging behaves randomly. Additional patch. (akovalenko)

Aleksandr Kovalenko 11 anos atrás
pai
commit
563de9f334
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      ambari-web/app/views/main/host.js

+ 1 - 1
ambari-web/app/views/main/host.js

@@ -76,7 +76,7 @@ App.MainHostView = App.TableView.extend(App.TableServerProvider, {
   pageContent: function () {
     var content = this.get('filteredContent');
     if (content.length > this.get('endIndex') - this.get('startIndex') + 1) {
-      content = content.slice(this.get('startIndex') - 1, this.get('endIndex'));
+      content = content.slice(0, this.get('endIndex') - this.get('startIndex') + 1);
     }
     return content.sort(function (a, b) {
       return a.get('index') - b.get('index');