Merge pull request #10233 from stsewd/fix-set-index

Searchtools: fix null query on setIndex
This commit is contained in:
Takeshi KOMIYA 2022-03-05 15:37:58 +09:00 committed by GitHub
commit db885ef7f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
},