Skip to content

Commit

Permalink
MAGETWO-58857: UI Grid won't load initial data until its state gets m…
Browse files Browse the repository at this point in the history
…odified
  • Loading branch information
Denys Rul committed Sep 27, 2016
1 parent 14028aa commit 19abbdd
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 19abbdd

Please sign in to comment.