From 66923240a7c8cd6855fda59c3727aae878043a40 Mon Sep 17 00:00:00 2001 From: Jeffrey Holland Date: Wed, 26 Mar 2025 16:23:39 +0100 Subject: [PATCH] Address lint issue by using `takeUntilDestroyed` --- apps/desktop/src/modal/passkeys/fido2-vault.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/modal/passkeys/fido2-vault.component.ts b/apps/desktop/src/modal/passkeys/fido2-vault.component.ts index ba84929ec8d..ac8cc4a8638 100644 --- a/apps/desktop/src/modal/passkeys/fido2-vault.component.ts +++ b/apps/desktop/src/modal/passkeys/fido2-vault.component.ts @@ -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) => {