mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
delay search if indexing
This commit is contained in:
@@ -92,6 +92,13 @@ export class SearchService implements SearchServiceAbstraction {
|
||||
return ciphers;
|
||||
}
|
||||
|
||||
if (this.indexing) {
|
||||
await new Promise((r) => setTimeout(r, 250));
|
||||
if (this.indexing) {
|
||||
await new Promise((r) => setTimeout(r, 500));
|
||||
}
|
||||
}
|
||||
|
||||
const index = this.getIndexForSearch();
|
||||
if (index == null) {
|
||||
// Fall back to basic search if index is not available
|
||||
|
||||
Reference in New Issue
Block a user