diff --git a/packages/admin-ui/src/lib/catalog/src/providers/product-detail/product-detail.service.ts b/packages/admin-ui/src/lib/catalog/src/providers/product-detail/product-detail.service.ts index 23a0fced8b..8aa0cd8366 100644 --- a/packages/admin-ui/src/lib/catalog/src/providers/product-detail/product-detail.service.ts +++ b/packages/admin-ui/src/lib/catalog/src/providers/product-detail/product-detail.service.ts @@ -165,7 +165,7 @@ export class ProductDetailService { const productOldName = findTranslation(product, languageCode)?.name; const productNewName = findTranslation(productInput, languageCode)?.name; - if (productOldName && productNewName && autoUpdate) { + if (productOldName && productNewName && productOldName !== productNewName && autoUpdate) { for (const variant of product.variants) { const currentVariantName = findTranslation(variant, languageCode)?.name || ''; let variantInput: UpdateProductVariantInput; diff --git a/packages/admin-ui/src/lib/core/src/data/utils/transform-relation-custom-field-inputs.ts b/packages/admin-ui/src/lib/core/src/data/utils/transform-relation-custom-field-inputs.ts index e0a799be6a..781816aa37 100644 --- a/packages/admin-ui/src/lib/core/src/data/utils/transform-relation-custom-field-inputs.ts +++ b/packages/admin-ui/src/lib/core/src/data/utils/transform-relation-custom-field-inputs.ts @@ -48,5 +48,5 @@ function transformRelations(input: T, customFieldConfig: CustomFieldConfig[]) } function hasCustomFields(input: any): input is { customFields: { [key: string]: any } } { - return input != null && input.hasOwnProperty('customFields'); + return input != null && input.hasOwnProperty('customFields') && typeof input.customFields === 'object'; }