From 65aced655b157c1f3d23cd42cd23ee206532c696 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Fri, 12 Jan 2024 16:15:18 +0100 Subject: [PATCH] fix(admin-ui): Fix auto-rename of variants when product is renamed Closes #2579 --- .../src/components/product-detail/product-detail.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/admin-ui/src/lib/catalog/src/components/product-detail/product-detail.component.ts b/packages/admin-ui/src/lib/catalog/src/components/product-detail/product-detail.component.ts index 87e8daa4c0..3242769378 100644 --- a/packages/admin-ui/src/lib/catalog/src/components/product-detail/product-detail.component.ts +++ b/packages/admin-ui/src/lib/catalog/src/components/product-detail/product-detail.component.ts @@ -363,8 +363,7 @@ export class ProductDetailComponent return this.productDetailService.updateProduct({ product, languageCode, - autoUpdate: - this.detailForm.get(['product', 'autoUpdateVariantNames'])?.value ?? false, + autoUpdate: this.detailForm.get(['autoUpdateVariantNames'])?.value ?? false, productInput, variantsInput, });