Add Gallery items programmatically inside an InnerBlock

It looks like the issue is appearing because we have not passed image id along with the image url, so could you please try to do the same and then take a look.

You can do this by replacing the given code

product.images.map((img) => ({ url: img.src }))

with

product.images.map((img) => ({
 id: img.id,
 url: img.src,
}))

This change will ensures that each image object has both id and url properties, which the core/gallery block expects.

techhipbettruvabetnorabahisbahis forumutaraftarium24edusedueduedueduseduedusedueduedus