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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user