fix: bug that does not accept original query

This commit is contained in:
Yanlong Wang 2025-04-03 21:58:15 +08:00
parent eb9109c389
commit 3e7dd8c65a
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -506,7 +506,7 @@ export class SearcherHost extends RPCHost {
// Extract results based on variant
let tryTimes = 1;
const results = await this.doSearch(params, noCache);
if (results.length && !useFallback) {
if (results.length || !useFallback) {
return { results, query: params.q, tryTimes };
}