Skip to content

Enhancement: Add fallback for missing SVG Rendering in SplashViz.jsx#8002

Closed
rahul-kr-rai wants to merge 1 commit intowebpack:mainfrom
rahul-kr-rai:enhancement
Closed

Enhancement: Add fallback for missing SVG Rendering in SplashViz.jsx#8002
rahul-kr-rai wants to merge 1 commit intowebpack:mainfrom
rahul-kr-rai:enhancement

Conversation

@rahul-kr-rai
Copy link
Contributor

Summary

This PR adds null/undefined checks with a fallback message for SVG rendering in the SplashViz.jsx component. It ensures that if HomeSVG.body is missing, the component will not break and instead display a clear fallback.

What kind of change does this PR introduce?
Enhancement: improves resilience and user feedback in case of missing SVG data.

Did you add tests for your changes?
No

Does this PR introduce a breaking change?
No

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Use of AI
GitHub Copilot

@vercel
Copy link

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Mar 12, 2026 8:23pm

Request Review

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Is it possible when we don't have it? No need to make something if it will not happen

@rahul-kr-rai
Copy link
Contributor Author

Fair point! Since it's a static import, the build process would catch any missing assets anyway. I'll revert this to keep the code lean.

@alexander-akait
Copy link
Member

Let's close because we don't need it, we can revisit this in future if we will have situations when we don't have content

@rahul-kr-rai rahul-kr-rai deleted the enhancement branch March 16, 2026 01:11
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.

2 participants