Yoast-SEO-for-Magento2 icon indicating copy to clipboard operation
Yoast-SEO-for-Magento2 copied to clipboard

Add new product javascript error product_images.js

Open govereem opened this issue 6 years ago • 0 comments

product_images.js:26 Uncaught TypeError: Cannot read property 'images' of undefined The code is searching for formData.data.product.media_gallery which is not set when creating an new product. /vendor/maxserv/magento-module-yoastseo/view/adminhtml/web/js/form/provider/product_images.js

Solved it for now on line 27 FROM

if (!images.length && formData.data.product.media_gallery.images) {

TO

if (!images.length && formData.data.product.media_gallery != undefined && formData.data.product.media_gallery.images) {

version 2.0.1

govereem avatar Aug 06 '18 12:08 govereem