Hey Team, with my code: const populateMediaRepeater = ()=>{ const mediaData = product.mediaItems.map((item, index)=>({...item, _id: index.tostring()})); $w('#mediaRepeater').data=mediaData; } im getting an error stating: Property 'map' does not exist on type 'mediaItem' any Ideas?
top of page
bottom of page
Hi! Apparently the mediaItems are a special type defined by Wix and striped of their map properties, one work around could be to use a loop. Please check out this video for a full solution: