Skip to content

Commit

Permalink
Update src/components/autosuggest/autosuggest.ui.js
Browse files Browse the repository at this point in the history
Co-authored-by: rmccar <[email protected]>
  • Loading branch information
precious-onyenaucheya-ons and rmccar authored Oct 17, 2024
1 parent 73292b3 commit febbfdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/autosuggest/autosuggest.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export default class AutosuggestUI {
this.extendedSearch != null && this.extendedSearchThreshold >= 0 && this.extendedSearchThreshold <= 1
? this.extendedSearchThreshold
: 0.2;
const results = await runFuse(sanitisedQuery, data, this.lang, threshold, this.resultLimit);
const results = await runFuse(sanitisedQuery, data, this.lang, threshold);

results.forEach((result) => {
result.sanitisedText = sanitiseAutosuggestText(result[this.lang], this.sanitisedQueryReplaceChars);
Expand Down

0 comments on commit febbfdf

Please sign in to comment.