Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images not shown in "Aktuellt/News" view #48

Open
OliverMidbrink opened this issue May 3, 2022 · 1 comment
Open

Images not shown in "Aktuellt/News" view #48

OliverMidbrink opened this issue May 3, 2022 · 1 comment

Comments

@OliverMidbrink
Copy link
Collaborator

image

@koderik
Copy link
Contributor

koderik commented May 27, 2022

Problem located:

Screenshot 2022-05-27 at 17 13 46

item?.__media?.url is undefined in Blog.tsx:173 header image when it should be url link to image. No idea why this doesnt work. Note: Blog.tsx:162 does not impact what image is shown

console.log(item?.__media?.url) returns Undefined

Same problem in Gallery.tsx:112 but with firstItem?.__media?.url for the rest of the images. Note: Gallery.tsx:139 does not impact what image is shown

Potenital solutions

Find and replace firstItem?.__media?.url with firstItem?.__media?.formats.medium.url and item?.__media?.url with item?.__media?.formats.medium.url which does contain link to correct image. Note: medium can be replaced with large and small, i just chose one at random

Screenshot 2022-05-27 at 17 28 09

Fix so that firstItem?.__media?.url and item?.__media?.url returns link to image, maybe something for @landeholt or @OliverMidbrink ?

@koderik koderik mentioned this issue May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants