mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
[PM-7874] Fix lost state when adding a vault item on the current tab view (#9020)
This commit is contained in:
@@ -33,7 +33,6 @@ export abstract class CipherService {
|
||||
url: string,
|
||||
includeOtherTypes?: CipherType[],
|
||||
defaultMatch?: UriMatchStrategySetting,
|
||||
reindexCiphers?: boolean,
|
||||
) => Promise<CipherView[]>;
|
||||
getAllFromApiForOrganization: (organizationId: string) => Promise<CipherView[]>;
|
||||
/**
|
||||
|
||||
@@ -441,7 +441,6 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
url: string,
|
||||
includeOtherTypes?: CipherType[],
|
||||
defaultMatch: UriMatchStrategySetting = null,
|
||||
reindexCiphers = true,
|
||||
): Promise<CipherView[]> {
|
||||
if (url == null && includeOtherTypes == null) {
|
||||
return Promise.resolve([]);
|
||||
@@ -450,9 +449,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
const equivalentDomains = await firstValueFrom(
|
||||
this.domainSettingsService.getUrlEquivalentDomains(url),
|
||||
);
|
||||
const ciphers = reindexCiphers
|
||||
? await this.getAllDecrypted()
|
||||
: await this.getDecryptedCiphers();
|
||||
const ciphers = await this.getAllDecrypted();
|
||||
defaultMatch ??= await firstValueFrom(this.domainSettingsService.defaultUriMatchStrategy$);
|
||||
|
||||
return ciphers.filter((cipher) => {
|
||||
|
||||
Reference in New Issue
Block a user