1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-28 02:43:04 +01:00

Insert missing await (#449)

This commit is contained in:
Thomas Rittson 2021-08-11 06:36:16 +10:00 committed by GitHub
parent c694591e4c
commit 98098c3fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,12 +53,12 @@ export class CiphersComponent {
clearTimeout(this.searchTimeout);
}
if (timeout == null) {
this.doSearch(indexedCiphers);
await this.doSearch(indexedCiphers);
return;
}
this.searchPending = true;
this.searchTimeout = setTimeout(async () => {
this.doSearch(indexedCiphers);
await this.doSearch(indexedCiphers);
this.searchPending = false;
}, timeout);
}