From 7a62e7a50145a28ede267679fb9bdcc09ea4cba4 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Mon, 17 Jun 2024 12:56:00 +0200 Subject: [PATCH] fix(admin-ui): Show correct facet value language version on lang change Fixes #2889 --- .../src/components/facet-detail/facet-detail.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/admin-ui/src/lib/catalog/src/components/facet-detail/facet-detail.component.ts b/packages/admin-ui/src/lib/catalog/src/components/facet-detail/facet-detail.component.ts index e535054337..b57a086080 100644 --- a/packages/admin-ui/src/lib/catalog/src/components/facet-detail/facet-detail.component.ts +++ b/packages/admin-ui/src/lib/catalog/src/components/facet-detail/facet-detail.component.ts @@ -364,6 +364,8 @@ export class FacetDetailComponent if (!valueControl) { valueControl = this.formBuilder.group(group); currentValuesFormGroup.addControl(value.id, valueControl); + } else { + valueControl.patchValue(group); } if (this.customValueFields.length) { let customValueFieldsGroup = valueControl.get(['customFields']) as