From 02616d438c7faa80d53a68b76b4ad710899c9ae2 Mon Sep 17 00:00:00 2001 From: Roi-Arthur <48017311+Roi-Arthur@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:46:07 +0100 Subject: [PATCH] Add early return in updateQuantityRules function if no quantity selector is present --- assets/product-info.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/product-info.js b/assets/product-info.js index c196113afec..af790928e58 100644 --- a/assets/product-info.js +++ b/assets/product-info.js @@ -364,6 +364,7 @@ if (!customElements.get('product-info')) { } updateQuantityRules(sectionId, html) { + if (!this.quantityInput) return; this.setQuantityBoundries(); const quantityFormUpdated = html.getElementById(`Quantity-Form-${sectionId}`);