File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
app/code/Magento/Ui/view/base/web/js/grid Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,12 @@ define([
41
41
setTimeout ( function ( ) {
42
42
this . apply ( ) ;
43
43
} . bind ( this ) , 100 ) ;
44
- } else {
45
- if ( Object . keys ( urlFilter ) . length ) {
46
- this . filterComponent ( ) . setData ( urlFilter , false ) ;
47
- this . filterComponent ( ) . apply ( ) ;
48
- }
44
+
45
+ return ;
46
+ }
47
+ if ( Object . keys ( urlFilter ) . length ) {
48
+ this . filterComponent ( ) . setData ( urlFilter , false ) ;
49
+ this . filterComponent ( ) . apply ( ) ;
49
50
}
50
51
} ,
51
52
@@ -55,17 +56,18 @@ define([
55
56
* @returns {Object }
56
57
*/
57
58
getFilterParam : function ( url ) {
58
- var searchString = decodeURI ( url ) ;
59
+ var searchString = decodeURI ( url ) ,
60
+ itemArray ;
59
61
60
62
return _ . chain ( searchString . slice ( 1 ) . split ( '&' ) )
61
63
. map ( function ( item ) {
62
64
if ( item && item . search ( this . filterKey ) !== - 1 ) {
63
- var itemArray = item . split ( '=' ) ;
65
+ itemArray = item . split ( '=' ) ;
64
66
65
67
itemArray [ 0 ] = itemArray [ 0 ] . replace ( this . filterKey , '' )
66
68
. replace ( / [ \[ \] ] / g, '' ) ;
67
69
68
- return itemArray
70
+ return itemArray ;
69
71
}
70
72
} . bind ( this ) )
71
73
. compact ( )
You can’t perform that action at this time.
0 commit comments