1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

bump timeout for upserting ciphers

This commit is contained in:
Nick Krantz
2025-03-21 12:10:13 -05:00
parent 952861ded3
commit e963acc377

View File

@@ -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 // 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 // Otherwise, subscribers to cipherViews$ can get stale data
await new Promise((resolve) => setTimeout(resolve, 0)); await new Promise((resolve) => setTimeout(resolve, 1));
return res; 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 // 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 // Otherwise, subscribers to cipherViews$ can get stale data
await new Promise((resolve) => setTimeout(resolve, 0)); await new Promise((resolve) => setTimeout(resolve, 1));
return updatedCiphers; return updatedCiphers;
} }