pull/1/head
Jan Umbach 2024-05-27 19:40:11 +02:00
parent 323eacee5e
commit 306a37f38b
1 changed files with 1 additions and 5 deletions

View File

@ -975,11 +975,7 @@ class VariantSelects extends HTMLElement {
}
filterImageVariant() {
const variantId = this.currentVariant?.id;
const productImages = document.querySelectorAll(`[data-variant-id]`);
productImages.forEach((image) => {
image.style.display = image.dataset.variantId === variantId ? 'block' : 'none';
});
console.log('thumbnail updated', this.currentVariant);
}
updateOptions() {