1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

fix value update for match detections (#11417)

This commit is contained in:
Nick Krantz
2024-10-04 13:16:21 -05:00
committed by GitHub
parent 935ae9d238
commit e6ff647343
2 changed files with 13 additions and 2 deletions

View File

@@ -149,12 +149,12 @@ export class UriOptionComponent implements ControlValueAccessor {
}
// NG_VALUE_ACCESSOR implementation
writeValue(value: any): void {
writeValue(value: { uri: string; matchDetection: UriMatchStrategySetting | null }): void {
if (value) {
this.uriForm.setValue(
{
uri: value.uri ?? "",
matchDetection: value.match ?? null,
matchDetection: value.matchDetection ?? null,
},
{ emitEvent: false },
);