[PM-12609] Use shareReplay for allCiphers$ observable (#11229)
This commit is contained in:
parent
4269489548
commit
e6c3de9f47
|
@ -343,6 +343,7 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
await this.searchService.indexCiphers(ciphers, organization.id);
|
await this.searchService.indexCiphers(ciphers, organization.id);
|
||||||
return ciphers;
|
return ciphers;
|
||||||
}),
|
}),
|
||||||
|
shareReplay({ refCount: true, bufferSize: 1 }),
|
||||||
);
|
);
|
||||||
|
|
||||||
const allCipherMap$ = allCiphers$.pipe(
|
const allCipherMap$ = allCiphers$.pipe(
|
||||||
|
|
Loading…
Reference in New Issue