fix(search): correctly display results when searching from selected text (#2304)

This commit is contained in:
Huang Xin
2025-10-23 17:52:49 +08:00
committed by GitHub
parent d7e89cc01f
commit 70489b46a5
@@ -148,7 +148,7 @@ const SearchBar: React.FC<SearchBarProps> = ({
console.log('search progress:', result.progress);
lastProgressLogTime = now;
}
if (queuedSearchTerm.current !== term) {
if (queuedSearchTerm.current && queuedSearchTerm.current !== term) {
console.log('search term changed, resetting search');
resetSearch();
return;