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([
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 /**
You can’t perform that action at this time.
0 commit comments