You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to WP API reference (https://developer.wordpress.org/rest-api/reference/media/), there's no sizes property at media object anymore. It's located at media_details property. So it should get from media.media_details.sizes.large.source_url.
Still, I think the block shouldn't get a specific size image. Should get the original and/or add a sidebar option to let the user choose. Not sure how it work in WP but in Drupal the image styles/sizes can be altered and, for example the large size option may not exist.
Looking at code here:
https://github.com/front/g-section-row/blob/master/src/section-row/index.js#L242-L247
I think there's going to be issues:
sizesproperty at media object anymore. It's located atmedia_detailsproperty. So it should get frommedia.media_details.sizes.large.source_url.