Skip to content

Commit

Permalink
Merge pull request #462 from magento-frontend/MAGETWO-58857
Browse files Browse the repository at this point in the history
Bug 
- MAGETWO-58857 UI Grid won't load initial data until its state gets modified
  • Loading branch information
VladimirZaets authored Oct 5, 2016
2 parents aba7790 + c05ebec commit eb50977
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/code/Magento/Ui/view/base/web/js/grid/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ define([
.initStorage()
.clearData();

// Load data when there will
// be no more pending assets.
resolver(this.reload, this);

return this;
},

Expand Down Expand Up @@ -122,9 +126,11 @@ define([
* Handles changes of 'params' object.
*/
onParamsChange: function () {
this.firstLoad ?
resolver(this.reload, this) :
// It's necessary to make a reload only
// after the initial loading has been made.
if (!this.firstLoad) {
this.reload();
}
},

/**
Expand Down

0 comments on commit eb50977

Please sign in to comment.