Skip to content

fix(images): make downloads optional to prevent crash when field abse…#740

Merged
castrojo merged 1 commit into
projectbluefin:mainfrom
castrojo:upstream-pr/fix-images-crash
Apr 12, 2026
Merged

fix(images): make downloads optional to prevent crash when field abse…#740
castrojo merged 1 commit into
projectbluefin:mainfrom
castrojo:upstream-pr/fix-images-crash

Conversation

@castrojo
Copy link
Copy Markdown
Contributor

…nt from data

product.downloads was a required field in the Product interface but fetch-github-images.js never writes it, causing a runtime TypeError on production at product.downloads.display.

Make downloads optional and guard the statsRow render so the page loads cleanly when pull-count data is unavailable.

…nt from data

product.downloads was a required field in the Product interface but
fetch-github-images.js never writes it, causing a runtime TypeError on
production at product.downloads.display.

Make downloads optional and guard the statsRow render so the page
loads cleanly when pull-count data is unavailable.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Product interface to make the downloads field optional and nullable. It also adds a conditional check in the ImagesCatalogComponent to safely render download statistics only when the data is present, preventing potential runtime errors. I have no feedback to provide.

@castrojo castrojo merged commit 28f59b9 into projectbluefin:main Apr 12, 2026
2 checks passed
@castrojo castrojo deleted the upstream-pr/fix-images-crash branch May 9, 2026 19:32
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

Successfully merging this pull request may close these issues.

1 participant