From 2f3938d793ac439480fc1ad8d0379dc29b5750aa Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Tue, 28 May 2024 17:04:31 +0200 Subject: [PATCH] test --- assets/global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/global.js b/assets/global.js index 1a5c6c8..86b35e1 100644 --- a/assets/global.js +++ b/assets/global.js @@ -1130,7 +1130,7 @@ class VariantSelects extends HTMLElement { console.log('mediaGallery', mediaGallery); // get the second image id - const secondImageId = mediaGallery.querySelector('.product-media-gallery__thumbnail:nth-child(2)').dataset.mediaId; + const secondImageId = mediaGallery.querySelector('.thumbnail-list__item:nth-child(2)').dataset.mediaId; console.log('secondImageId', secondImageId);