Skip to content

Commit

Permalink
[search] fix an undefined local variable (#12235)
Browse files Browse the repository at this point in the history
  • Loading branch information
picnixz committed Apr 6, 2024
1 parent db4939f commit c7c0200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx/themes/basic/static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ const Search = {
},

query: (query) => {
const searchParameters = Search._parseQuery(query);
const results = Search._performSearch(...searchParameters);
const [searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms] = Search._parseQuery(query);
const results = Search._performSearch(searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms);

// for debugging
//Search.lastresults = results.slice(); // a copy
Expand Down

0 comments on commit c7c0200

Please sign in to comment.