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

Missing lead image #1

Open
tommyneu opened this issue Nov 20, 2024 · 1 comment
Open

Missing lead image #1

tommyneu opened this issue Nov 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tommyneu
Copy link
Member

We try to access the image but if there is none then we get an error. We need to check if it is null before trying to get it's value

https://github.com/unl/nebraska-today/blob/main/web/themes/custom/unl_five_news/unl_five_news.theme#L78

@tommyneu tommyneu added the bug Something isn't working label Nov 20, 2024
@sarongebre
Copy link

We need an if for "field_article_lead_media->first()->get('entity')->getTarget()" before we try to access it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants