We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7852703 commit 00ac7e2Copy full SHA for 00ac7e2
assets/js/autocomplete/suggestions.js
@@ -31,7 +31,7 @@ const DEFAULT_AUTOCOMPLETE_LIMIT = 10
31
* @returns {Suggestion[]} List of suggestions sorted and limited.
32
*/
33
export function getSuggestions (query, explicitLimit = null) {
34
- const limit = explicitLimit || window.autocompleteLimit || DEFAULT_AUTOCOMPLETE_LIMIT || 10
+ const limit = explicitLimit || window.autocompleteLimit || DEFAULT_AUTOCOMPLETE_LIMIT
35
if (isBlank(query)) {
36
return []
37
}
0 commit comments