diff --git a/packages/app/src/pages/landelijk/varianten.tsx b/packages/app/src/pages/landelijk/varianten.tsx index e1096fd3c6..d01e4ab58e 100644 --- a/packages/app/src/pages/landelijk/varianten.tsx +++ b/packages/app/src/pages/landelijk/varianten.tsx @@ -172,7 +172,11 @@ export default function CovidVariantenPage(props: StaticProps {archivedVariantChart && variantLabels && ( ) => { const hospitalLastValue = getLastFilledValue(data.hospital_lcps); const icuLastValue = getLastFilledValue(data.intensive_care_lcps); - const lcpsHospitalWithoutRange = data.hospital_lcps.values.map((value) => ({ ...value, date_end_unix: undefined, date_start_unix: undefined })); - const lcpsICWithoutRange = data.intensive_care_lcps.values.map((value) => ({ ...value, date_end_unix: undefined, date_start_unix: undefined })); + const valuesWithoutDateRange = data.hospital_lcps.values.map((value) => ({ ...value, date_end_unix: undefined, date_start_unix: undefined })); const lastInsertionDateOfPage = getLastInsertionDateOfPage(data, pageMetrics); @@ -174,7 +173,7 @@ const HospitalsAndCarePage = (props: StaticProps) => { accessibility={{ key: 'hospital_beds_occupied_over_time_chart', }} - values={lcpsHospitalWithoutRange} + values={valuesWithoutDateRange} timeframe={hospitalBedsOccupiedOverTimeTimeframe} forceLegend seriesConfig={[ @@ -226,7 +225,7 @@ const HospitalsAndCarePage = (props: StaticProps) => { accessibility={{ key: 'intensive_care_beds_occupied_over_time_chart', }} - values={lcpsICWithoutRange} + values={data.intensive_care_lcps.values} timeframe={intensiveCareBedsTimeframe} forceLegend seriesConfig={[ @@ -255,7 +254,6 @@ const HospitalsAndCarePage = (props: StaticProps) => { }, ], timelineEvents: getTimelineEvents(content.elements.timeSeries, 'intensive_care_lcps', 'beds_occupied_covid'), - useDatesAsRange: false, }} /> @@ -298,7 +296,7 @@ const HospitalsAndCarePage = (props: StaticProps) => { accessibility={{ key: 'hospital_patient_influx_over_time_chart', }} - values={trimLeadingNullValues(lcpsHospitalWithoutRange, 'influx_covid_patients')} + values={trimLeadingNullValues(valuesWithoutDateRange, 'influx_covid_patients')} timeframe={hospitalPatientInfluxOverTimeTimeframe} seriesConfig={[ { @@ -339,7 +337,7 @@ const HospitalsAndCarePage = (props: StaticProps) => { accessibility={{ key: 'intensive_care_patient_influx_over_time_chart', }} - values={trimLeadingNullValues(lcpsICWithoutRange, 'influx_covid_patients')} + values={trimLeadingNullValues(data.intensive_care_lcps.values, 'influx_covid_patients')} timeframe={intensiveCarePatientInfluxOverTimeTimeframe} seriesConfig={[ {