GenSpectrum / dashboard-components

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

`gs-date-range-selector`: undefined dates when date option's dateFrom is after dateTo #496

Open fengelniederhammer opened 2 weeks ago

fengelniederhammer commented 2 weeks ago

Add a dateRangeOption where the dateFrom is after the dateTo: grafik

Select that option: grafik

Actual result: The event.detail is an empty object, which (since our spec says it contains the dates) is equivalent to event.detail.dateFrom === undefined and event.detail.dateTo === undefined.

Expected result: Throw an error as soon as we encounter such an option?