mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #10233 from stsewd/fix-set-index
Searchtools: fix null query on setIndex
This commit is contained in:
commit
db885ef7f6
@ -167,8 +167,9 @@ const Search = {
|
||||
setIndex: (index) => {
|
||||
Search._index = index;
|
||||
if (Search._queued_query !== null) {
|
||||
const query = Search._queued_query;
|
||||
Search._queued_query = null;
|
||||
Search.query(Search._queued_query);
|
||||
Search.query(query);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user