GenSpectrum / dashboard-components

https://genspectrum.github.io/dashboard-components/
GNU Affero General Public License v3.0
2 stars 0 forks source link

feat(components): gs-location-filter: set all values in `gs-location-changed` event details #274

Closed fengelniederhammer closed 6 months ago

fengelniederhammer commented 6 months ago

resolves #265

Summary

If the value is not present, explicitly set it to undefined. That way, receivers can overwrite previously set values by using the spread operator on the event details.

Event details may look like:

{
  country: undefined,
  division: undefined,
  location: undefined,
  region: "Asia",
}

Screenshot

PR Checklist

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dashboards-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 7:38am