Skip to content

fix(components): use null values instead of undefined for wastewater-over-time plots#1081

Merged
fhennig merged 1 commit intomainfrom
fix-wastewater-undefined-values
Feb 4, 2026
Merged

fix(components): use null values instead of undefined for wastewater-over-time plots#1081
fhennig merged 1 commit intomainfrom
fix-wastewater-undefined-values

Conversation

@fhennig
Copy link
Contributor

@fhennig fhennig commented Feb 4, 2026

This resolves a bug we currently have on prod GenSpectrum.

Summary

The Tooltip expects the value to be null or a ProportionValue.
The code that fetches the wastewater data doesn't use null for missing values, but instead uses undefined. This PR changes that so it's in line with the mutations-over-time fetching code.

I've also added a defensive check that issues a console warning if there is an undefined value again. But this is not triggered at the moment - Because of the interface used, the type allows undefined at that point, so we have to deal with potential undefined values somehow. I think a console log is appropriate.

Screenshot

image

PR Checklist

  • All necessary documentation has been adapted.
  • The implemented feature is covered by an appropriate test.

@vercel
Copy link

vercel bot commented Feb 4, 2026

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

Project Deployment Actions Updated (UTC)
dashboard-components Ready Ready Preview, Comment Feb 4, 2026 3:01pm

Request Review

@fhennig fhennig merged commit def5f5e into main Feb 4, 2026
6 checks passed
@fhennig fhennig deleted the fix-wastewater-undefined-values branch February 4, 2026 15:48
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