1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 05:30:01 +00:00

Address lint issue by using takeUntilDestroyed

This commit is contained in:
Jeffrey Holland
2025-03-26 16:23:39 +01:00
parent 4b2447df39
commit 66923240a7

View File

@@ -1,5 +1,6 @@
import { CommonModule } from "@angular/common";
import { Component, OnInit, OnDestroy } from "@angular/core";
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
import { RouterModule, Router } from "@angular/router";
import { firstValueFrom, map, BehaviorSubject, Observable } from "rxjs";
@@ -70,8 +71,7 @@ export class Fido2VaultComponent implements OnInit, OnDestroy {
this.session = this.fido2UserInterfaceService.getCurrentSession();
this.cipherIds$ = this.session?.availableCipherIds$;
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
this.cipherIds$.subscribe((cipherIds) => {
this.cipherIds$.pipe(takeUntilDestroyed()).subscribe((cipherIds) => {
this.cipherService
.getAllDecryptedForIds(activeUserId, cipherIds || [])
.then((ciphers) => {