pull/1/head
Jan Umbach 2024-05-28 18:27:13 +02:00
parent 0138c1877f
commit ce336ebdc5
1 changed files with 2 additions and 1 deletions

View File

@ -1138,7 +1138,8 @@ class VariantSelects extends HTMLElement {
for (const galleryImage of galleryImages) {
// if display is not none, then show the image
if (galleryImage.style.display !== 'none') {
console.log("galleryImage.getAttribute('thumbnail-alt')", galleryImage.getAttribute('thumbnail-alt'));
if (galleryImage.getAttribute('thumbnail-alt') === this.currentVariant.featured_image.alt) {
if (index <= 0) {
index++;