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
Describe the bug
App errors on when visiting an individual event page. After some digging my guess is that the image style source data structure changed upstream and the code in media--image.tsx is now looking for a key that doesn't exist.
Inside of starters/basic-starter/components/media--image.tsx
if (imageStyle) {
if (image.links) {
if (image.links[imageStyle]) {
const imageStyleSource = image.links[imageStyle];
sizeProps = {
width: width || imageStyleSource.meta.linkParams.width,
height: height || imageStyleSource.meta.linkParams.height,
};
I don't think linkParams exists anymore so it should be removed so now it is imageStyleSource.meta.width and imageStyleSource.meta.height.
To Reproduce
Steps to reproduce the behavior:
Go to any individual event page ex. /event/webinar/2025/01/event-one-medium-length-placeholder-heading or run yarn build on head and it will error out
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
App errors on when visiting an individual event page. After some digging my guess is that the image style source data structure changed upstream and the code in media--image.tsx is now looking for a key that doesn't exist.
Inside of
starters/basic-starter/components/media--image.tsx
I don't think linkParams exists anymore so it should be removed so now it is
imageStyleSource.meta.width
andimageStyleSource.meta.height
.To Reproduce
Steps to reproduce the behavior:
/event/webinar/2025/01/event-one-medium-length-placeholder-heading
or run yarn build on head and it will error outScreenshots
The text was updated successfully, but these errors were encountered: