diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/products/view/gallery.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/products/view/gallery.blade.php index 51a5d3605..7441b576c 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/products/view/gallery.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/products/view/gallery.blade.php @@ -86,10 +86,12 @@ watch: { 'images': function(newVal, oldVal) { - this.changeImage({ - largeImageUrl: this.images[0]['large_image_url'], - originalImageUrl: this.images[0]['original_image_url'], - }) + if (this.images[0]) { + this.changeImage({ + largeImageUrl: this.images[0]['large_image_url'], + originalImageUrl: this.images[0]['original_image_url'], + }) + } this.prepareThumbs() }