Skip to content

Commit

Permalink
chore(sdk):fix trending queries consecutive
Browse files Browse the repository at this point in the history
  • Loading branch information
divyadaglia-unbxd committed Dec 11, 2024
1 parent d0e2c3e commit 3687fac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions unbxdAutosuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,12 @@ var unbxdAutoSuggestFunction = function ($, Handlebars, params) {


if ((this.options.trendingSearches.enabled && this.clickResults && this.clickResults.TRENDING_QUERIES.length > 0 && v === "")) {
this.$results.html('');
var cmpld = Handlebars.compile(this.prepareTrendingQueriesHTML());
this.$results.html(cmpld({
data1: this.trendingQueries
}));

this.showResults();
}
}
Expand Down

0 comments on commit 3687fac

Please sign in to comment.