don't store empty search queries to search favorites
This commit is contained in:
parent
1551fec917
commit
5ec72901f1
1 changed files with 3 additions and 0 deletions
|
|
@ -191,6 +191,9 @@ class SearchFavorites {
|
||||||
}
|
}
|
||||||
|
|
||||||
appendFavorite(strFav) {
|
appendFavorite(strFav) {
|
||||||
|
if (strFav === '') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.arFavitems.push(strFav);
|
this.arFavitems.push(strFav);
|
||||||
|
|
||||||
this.arFavitems = [...new Set(this.arFavitems)]; //remove duplicates
|
this.arFavitems = [...new Set(this.arFavitems)]; //remove duplicates
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue