Repository navigation
Replies: 1 comment
|
Steam no longer returns |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
When using
lowlighter/metrics@latestwith Steam plugin enabled, rendering fails after 3 retry attempts. The error occurs insteam.ejsline 56 at<%= genres.join(", ") %>. The variablegenresisundefinedfor one of the fetched Steam games.Steps to reproduce
lowlighter/metrics@latestExpected behavior
Metrics SVG should render successfully. If a Steam game has no genre data, skip or fallback to empty string instead of crashing the whole render.
Actual behavior
Render crashes with EJS template error:
Full trace points to
/metrics/source/templates/classic/partials/steam.ejs:56Environment
Proposed fix
Add null/undefined check before calling
.join()on genres array in steam.ejs template:<%= genres ? genres.join(", ") : "" %>All reactions