mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
[PM-9190] Use updateFn for patchCipher so that the current CipherView is available for context (#10258)
This commit is contained in:
@@ -9,11 +9,11 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||
import { IdentityView } from "@bitwarden/common/vault/models/view/identity.view";
|
||||
import {
|
||||
ButtonModule,
|
||||
SectionComponent,
|
||||
SectionHeaderComponent,
|
||||
CardComponent,
|
||||
FormFieldModule,
|
||||
IconButtonModule,
|
||||
SectionComponent,
|
||||
SectionHeaderComponent,
|
||||
SelectModule,
|
||||
TypographyModule,
|
||||
} from "@bitwarden/components";
|
||||
@@ -98,8 +98,9 @@ export class IdentitySectionComponent implements OnInit {
|
||||
data.postalCode = value.postalCode;
|
||||
data.country = value.country;
|
||||
|
||||
this.cipherFormContainer.patchCipher({
|
||||
identity: data,
|
||||
this.cipherFormContainer.patchCipher((cipher) => {
|
||||
cipher.identity = data;
|
||||
return cipher;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user