From c3e1b0964396674940f1430dbb81ae0c9adab3f8 Mon Sep 17 00:00:00 2001 From: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:09:38 -0400 Subject: [PATCH] PM-9906 - Web Preferences Component - Fix issue where having a vault timeout policy would prevent users from updating their preferences. (#10554) --- apps/web/src/app/settings/preferences.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/settings/preferences.component.ts b/apps/web/src/app/settings/preferences.component.ts index e1ba6389ab..96de258553 100644 --- a/apps/web/src/app/settings/preferences.component.ts +++ b/apps/web/src/app/settings/preferences.component.ts @@ -167,7 +167,10 @@ export class PreferencesComponent implements OnInit, OnDestroy { ); return; } - const values = this.form.value; + + // must get raw value b/c the vault timeout action is disabled when a policy is applied + // which removes the timeout action property and value from the normal form.value. + const values = this.form.getRawValue(); const activeAcct = await firstValueFrom(this.accountService.activeAccount$);