File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
app/code/Magento/Ui/view/base/web/js/grid Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ define([
35
35
} ,
36
36
ignoreTmpls : {
37
37
data : true
38
- }
38
+ } ,
39
+ triggerDataReload : false
39
40
} ,
40
41
41
42
/**
@@ -138,6 +139,8 @@ define([
138
139
// after the initial loading has been made.
139
140
if ( ! this . firstLoad ) {
140
141
this . reload ( ) ;
142
+ } else {
143
+ this . triggerDataReload = true ;
141
144
}
142
145
} ,
143
146
@@ -152,6 +155,7 @@ define([
152
155
this . set ( 'lastError' , true ) ;
153
156
154
157
this . firstLoad = false ;
158
+ this . triggerDataReload = false ;
155
159
156
160
alert ( {
157
161
content : $t ( 'Something went wrong.' )
@@ -165,11 +169,14 @@ define([
165
169
*/
166
170
onReload : function ( data ) {
167
171
this . firstLoad = false ;
168
-
169
172
this . set ( 'lastError' , false ) ;
170
-
171
173
this . setData ( data )
172
174
. trigger ( 'reloaded' ) ;
175
+
176
+ if ( this . triggerDataReload ) {
177
+ this . triggerDataReload = false ;
178
+ this . reload ( ) ;
179
+ }
173
180
} ,
174
181
175
182
/**
You can’t perform that action at this time.
0 commit comments