From 89bdd94437a0176e501f5745448298ee356c54b4 Mon Sep 17 00:00:00 2001 From: Raja-danaher Date: Tue, 3 Dec 2024 19:31:23 +0530 Subject: [PATCH 1/3] 1311-products-title-metadata-fix --- blocks/product-hero/product-hero.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/product-hero/product-hero.js b/blocks/product-hero/product-hero.js index db63a0c93..06e288f21 100644 --- a/blocks/product-hero/product-hero.js +++ b/blocks/product-hero/product-hero.js @@ -168,7 +168,8 @@ export default async function decorate(block) { titleEl?.parentElement.parentElement.remove(); const response = await getProductResponse(); if (response?.length > 0) { - document.title = response[0].Title ? response[0].Title : 'Danaher Product'; + //1311-products-title-metadata-fix + //document.title = response[0].Title ? response[0].Title : 'Danaher Product'; - const allImages = response[0]?.raw.images; const verticalImageGallery = imageSlider(allImages, response[0]?.Title); const defaultContent = div(); From 10183e054700e3d763d8bd0a5bb68b37ebfa6fd6 Mon Sep 17 00:00:00 2001 From: Raja-danaher Date: Tue, 3 Dec 2024 19:39:10 +0530 Subject: [PATCH 2/3] Update product-hero.js --- blocks/product-hero/product-hero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/product-hero/product-hero.js b/blocks/product-hero/product-hero.js index 06e288f21..80e7ba517 100644 --- a/blocks/product-hero/product-hero.js +++ b/blocks/product-hero/product-hero.js @@ -169,7 +169,7 @@ export default async function decorate(block) { const response = await getProductResponse(); if (response?.length > 0) { //1311-products-title-metadata-fix - //document.title = response[0].Title ? response[0].Title : 'Danaher Product'; - + //document.title = response[0].Title ? response[0].Title : 'Danaher Product'; const allImages = response[0]?.raw.images; const verticalImageGallery = imageSlider(allImages, response[0]?.Title); const defaultContent = div(); From 8e812738faa997404ec498aafccd2b3b26d69e85 Mon Sep 17 00:00:00 2001 From: Raja-danaher Date: Tue, 3 Dec 2024 20:04:49 +0530 Subject: [PATCH 3/3] Code update. --- blocks/product-hero/product-hero.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/product-hero/product-hero.js b/blocks/product-hero/product-hero.js index 80e7ba517..c97dfa841 100644 --- a/blocks/product-hero/product-hero.js +++ b/blocks/product-hero/product-hero.js @@ -168,8 +168,8 @@ export default async function decorate(block) { titleEl?.parentElement.parentElement.remove(); const response = await getProductResponse(); if (response?.length > 0) { - //1311-products-title-metadata-fix - //document.title = response[0].Title ? response[0].Title : 'Danaher Product'; + // Issue : 1311-products-title-metadata-fix + // document.title = response[0].Title ? response[0].Title : 'Danaher Product'; const allImages = response[0]?.raw.images; const verticalImageGallery = imageSlider(allImages, response[0]?.Title); const defaultContent = div();