diff --git a/apps/browser/src/vault/popup/services/vault-popup-items.service.ts b/apps/browser/src/vault/popup/services/vault-popup-items.service.ts index fa56b45c08..a1820a975f 100644 --- a/apps/browser/src/vault/popup/services/vault-popup-items.service.ts +++ b/apps/browser/src/vault/popup/services/vault-popup-items.service.ts @@ -120,7 +120,7 @@ export class VaultPopupItemsService { .cipherListViews$(userId) .pipe(filter((ciphers) => ciphers != null)), this.cipherService.failedToDecryptCiphers$(userId), - this.restrictedItemTypesService.restricted$.pipe(startWith([])), + this.restrictedItemTypesService.restricted$, ]), ), map(([ciphers, failedToDecryptCiphers, restrictions]) => { diff --git a/libs/common/src/autofill/services/autofill-settings.service.ts b/libs/common/src/autofill/services/autofill-settings.service.ts index c56f852d3d..f39c6e8de3 100644 --- a/libs/common/src/autofill/services/autofill-settings.service.ts +++ b/libs/common/src/autofill/services/autofill-settings.service.ts @@ -1,6 +1,6 @@ // FIXME: Update this file to be type safe and remove this and next line // @ts-strict-ignore -import { combineLatest, map, Observable, startWith, switchMap } from "rxjs"; +import { combineLatest, map, Observable, switchMap } from "rxjs"; import { CipherType } from "@bitwarden/common/vault/enums"; import { RestrictedItemTypesService } from "@bitwarden/common/vault/services/restricted-item-types.service"; @@ -205,7 +205,7 @@ export class AutofillSettingsService implements AutofillSettingsServiceAbstracti this.showInlineMenuCardsState = this.stateProvider.getActive(SHOW_INLINE_MENU_CARDS); this.showInlineMenuCards$ = combineLatest([ this.showInlineMenuCardsState.state$.pipe(map((x) => x ?? true)), - this.restrictedItemTypesService.restricted$.pipe(startWith([])), + this.restrictedItemTypesService.restricted$, ]).pipe( map( ([enabled, restrictions]) => diff --git a/libs/common/src/vault/services/vault-settings/vault-settings.service.ts b/libs/common/src/vault/services/vault-settings/vault-settings.service.ts index 28671a94cc..dbdb3a58dc 100644 --- a/libs/common/src/vault/services/vault-settings/vault-settings.service.ts +++ b/libs/common/src/vault/services/vault-settings/vault-settings.service.ts @@ -1,4 +1,4 @@ -import { Observable, combineLatest, map, shareReplay, startWith } from "rxjs"; +import { Observable, combineLatest, map, shareReplay } from "rxjs"; import { ActiveUserState, GlobalState, StateProvider } from "../../../platform/state"; import { VaultSettingsService as VaultSettingsServiceAbstraction } from "../../abstractions/vault-settings/vault-settings.service"; @@ -31,7 +31,7 @@ export class VaultSettingsService implements VaultSettingsServiceAbstraction { */ readonly showCardsCurrentTab$: Observable = combineLatest([ this.showCardsCurrentTabState.state$.pipe(map((x) => x ?? true)), - this.restrictedItemTypesService.restricted$.pipe(startWith([])), + this.restrictedItemTypesService.restricted$, ]).pipe( map( ([enabled, restrictions]) =>