From 4f8cd617656c2458758fe91ef8250353070fb997 Mon Sep 17 00:00:00 2001 From: Jason Ng Date: Wed, 12 Mar 2025 12:58:30 -0400 Subject: [PATCH] [PM-19106] view-item folder bug fix (#13808) added security task flag check to task api call in cipher-view --- libs/vault/src/cipher-view/cipher-view.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/vault/src/cipher-view/cipher-view.component.ts b/libs/vault/src/cipher-view/cipher-view.component.ts index 3782b866f1d..1df96656da5 100644 --- a/libs/vault/src/cipher-view/cipher-view.component.ts +++ b/libs/vault/src/cipher-view/cipher-view.component.ts @@ -171,6 +171,10 @@ export class CipherViewComponent implements OnChanges, OnDestroy { } async checkPendingChangePasswordTasks(userId: UserId): Promise { + if (!(await firstValueFrom(this.isSecurityTasksEnabled$))) { + return; + } + const tasks = await firstValueFrom(this.defaultTaskService.pendingTasks$(userId)); this.hadPendingChangePasswordTask = tasks?.some((task) => {