Skip to content

Commit a8c3f67

Browse files
author
Gabriel Galvao da Gama
committed
Fixed static tests
1 parent 8660c73 commit a8c3f67

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

app/code/Magento/Ui/view/base/web/js/grid/url-filter-applier.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ define([
4141
setTimeout(function () {
4242
this.apply();
4343
}.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();
4950
}
5051
},
5152

@@ -55,17 +56,18 @@ define([
5556
* @returns {Object}
5657
*/
5758
getFilterParam: function (url) {
58-
var searchString = decodeURI(url);
59+
var searchString = decodeURI(url),
60+
itemArray;
5961

6062
return _.chain(searchString.slice(1).split('&'))
6163
.map(function (item) {
6264
if (item && item.search(this.filterKey) !== -1) {
63-
var itemArray = item.split('=');
65+
itemArray = item.split('=');
6466

6567
itemArray[0] = itemArray[0].replace(this.filterKey, '')
6668
.replace(/[\[\]]/g, '');
6769

68-
return itemArray
70+
return itemArray;
6971
}
7072
}.bind(this))
7173
.compact()

0 commit comments

Comments
 (0)