mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
bump timeout for upserting ciphers
This commit is contained in:
@@ -986,7 +986,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
});
|
||||
// Some state storage providers (e.g. Electron) don't update the state immediately, wait for next tick
|
||||
// Otherwise, subscribers to cipherViews$ can get stale data
|
||||
await new Promise((resolve) => setTimeout(resolve, 0));
|
||||
await new Promise((resolve) => setTimeout(resolve, 1));
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -1013,7 +1013,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
});
|
||||
// Some state storage providers (e.g. Electron) don't update the state immediately, wait for next tick
|
||||
// Otherwise, subscribers to cipherViews$ can get stale data
|
||||
await new Promise((resolve) => setTimeout(resolve, 0));
|
||||
await new Promise((resolve) => setTimeout(resolve, 1));
|
||||
return updatedCiphers;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user