Authored by OF1706

less suggest

@@ -94,9 +94,9 @@ exports.getSearchData = (params, channel) => { @@ -94,9 +94,9 @@ exports.getSearchData = (params, channel) => {
94 94
95 let filters = Object.assign(searchHandler.handleFilterDataAll(result[2].data, params), 95 let filters = Object.assign(searchHandler.handleFilterDataAll(result[2].data, params),
96 finalResult.search.leftContent.sort); 96 finalResult.search.leftContent.sort);
97 - let termsSuggestion = _.get(result[2],'data.suggestion.terms_suggestion',false); 97 + let termsSuggestion = _.get(result[2], 'data.suggestion.terms_suggestion', false);
98 98
99 - filters.checkedConditions.conditions = _.concat(filters.checkedConditions.conditions, 99 + filters.checkedConditions.conditions = _.concat(filters.checkedConditions.conditions,
100 finalResult.search.leftContent.checked); 100 finalResult.search.leftContent.checked);
101 101
102 102
@@ -119,10 +119,10 @@ exports.getSearchData = (params, channel) => { @@ -119,10 +119,10 @@ exports.getSearchData = (params, channel) => {
119 suggestSecond: finalResult.search.suggestSecond 119 suggestSecond: finalResult.search.suggestSecond
120 }); 120 });
121 121
122 - if(finalResult.search.changedQuery === 'Y') {  
123 - finalResult.search.suggestFirst = finalResult.search.suggest[0];  
124 - finalResult.search.suggestSecond = _.reverse(_.slice(_.reverse(finalResult.search.suggest)));  
125 - } 122 + if (finalResult.search.changedQuery === 'Y') {
  123 + finalResult.search.suggestFirst = finalResult.search.suggest[0];
  124 + finalResult.search.suggestSecond = _.reverse(_.slice(_.reverse(finalResult.search.suggest)));
  125 + }
126 126
127 finalResult.criteo = {skn: searchHandler.getCriteo(_.get(finalResult.search, 'goods'))}; 127 finalResult.criteo = {skn: searchHandler.getCriteo(_.get(finalResult.search, 'goods'))};
128 } 128 }