File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
app/code/Magento/Ui/view/base/web/js/grid Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -105,12 +105,13 @@ define([
105105 var data = this . getViewData ( this . defaultIndex ) ;
106106
107107 if ( ! _ . size ( data ) ) {
108- this . setViewData ( this . defaultIndex , this . current )
109- . saveView ( this . defaultIndex ) ;
108+ if ( this . current . columns && this . current . positions ) {
109+ this . setViewData ( this . defaultIndex , this . current )
110+ . saveView ( this . defaultIndex ) ;
111+ this . defaultDefined = true ;
112+ }
110113 }
111114
112- this . defaultDefined = true ;
113-
114115 return this ;
115116 } ,
116117
Original file line number Diff line number Diff line change @@ -203,9 +203,6 @@ define([
203203 applyPositions : function ( positions ) {
204204 var sorting ;
205205
206- if ( ! positions ) {
207- return this ;
208- }
209206 sorting = this . elems . map ( function ( elem ) {
210207 return {
211208 elem : elem ,
You can’t perform that action at this time.
0 commit comments