Skip to content

Commit 507ec45

Browse files
committed
Merge remote-tracking branch 'l3/ACP2E-88' into PR_L3_22_04_2022
2 parents 8e6c1ac + b50d6de commit 507ec45

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

app/code/Magento/Ui/view/base/web/js/grid/provider.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ define([
3535
},
3636
ignoreTmpls: {
3737
data: true
38-
}
38+
},
39+
triggerDataReload: false
3940
},
4041

4142
/**
@@ -138,6 +139,8 @@ define([
138139
// after the initial loading has been made.
139140
if (!this.firstLoad) {
140141
this.reload();
142+
} else {
143+
this.triggerDataReload = true;
141144
}
142145
},
143146

@@ -152,6 +155,7 @@ define([
152155
this.set('lastError', true);
153156

154157
this.firstLoad = false;
158+
this.triggerDataReload = false;
155159

156160
alert({
157161
content: $t('Something went wrong.')
@@ -165,11 +169,14 @@ define([
165169
*/
166170
onReload: function (data) {
167171
this.firstLoad = false;
168-
169172
this.set('lastError', false);
170-
171173
this.setData(data)
172174
.trigger('reloaded');
175+
176+
if (this.triggerDataReload) {
177+
this.triggerDataReload = false;
178+
this.reload();
179+
}
173180
},
174181

175182
/**

0 commit comments

Comments
 (0)