diff --git a/assets/js/blocks/featured-product/block.js b/assets/js/blocks/featured-product/block.js index db747fa433e..263b309343d 100644 --- a/assets/js/blocks/featured-product/block.js +++ b/assets/js/blocks/featured-product/block.js @@ -278,6 +278,8 @@ const FeaturedProduct = ( { // so we need to check if it exists before using it. const focalPointPickerExists = typeof FocalPointPicker === 'function'; + const isImgElement = ! isRepeated && ! hasParallax; + return ( <> @@ -404,7 +406,7 @@ const FeaturedProduct = ( { } ) } /> - { ! isRepeated && ( + { isImgElement && ( { this.setState( { doUrlUpdate: true } ); }; + render() { return (