From b070b6b658d42ccb4e5de28fae59975196319c35 Mon Sep 17 00:00:00 2001 From: M <120020483+VWSCoronaDashboard30@users.noreply.github.com> Date: Tue, 12 Sep 2023 11:11:51 +0200 Subject: [PATCH] fix(zks-graphs): Fixed range dates to date (#4865) * fix(zks-graphs): Fixed range dates to date * fix(1806): Updated documentation --- docs/release-procedure.md | 2 +- packages/app/src/pages/landelijk/ziekenhuizen-in-beeld.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/release-procedure.md b/docs/release-procedure.md index e1eab3b132..9333569e07 100644 --- a/docs/release-procedure.md +++ b/docs/release-procedure.md @@ -66,7 +66,7 @@ By making a commit to develop first, you prevent getting merge conflicts in later releases and the flow of the commit history is one-directional and easy to follow. -1. Create a topic branch based on `develop`. +1. Create a hotfix branch based on `develop`. 2. Commit changes and create a PR on `develop` just like a normal feature branch. 3. Merged the branch to `develop` using **squash and merge**. diff --git a/packages/app/src/pages/landelijk/ziekenhuizen-in-beeld.tsx b/packages/app/src/pages/landelijk/ziekenhuizen-in-beeld.tsx index e6d52861e2..c98f0d2fa0 100644 --- a/packages/app/src/pages/landelijk/ziekenhuizen-in-beeld.tsx +++ b/packages/app/src/pages/landelijk/ziekenhuizen-in-beeld.tsx @@ -106,6 +106,8 @@ const HospitalsAndCarePage = (props: StaticProps) => { const hospitalLastValue = getLastFilledValue(data.hospital_lcps); const icuLastValue = getLastFilledValue(data.intensive_care_lcps); + const valuesWithoutDateRange = data.hospital_lcps.values.map((value) => ({ ...value, date_end_unix: undefined, date_start_unix: undefined })); + const lastInsertionDateOfPage = getLastInsertionDateOfPage(data, pageMetrics); return ( @@ -171,7 +173,7 @@ const HospitalsAndCarePage = (props: StaticProps) => { accessibility={{ key: 'hospital_beds_occupied_over_time_chart', }} - values={data.hospital_lcps.values} + values={valuesWithoutDateRange} timeframe={hospitalBedsOccupiedOverTimeTimeframe} forceLegend seriesConfig={[ @@ -294,7 +296,7 @@ const HospitalsAndCarePage = (props: StaticProps) => { accessibility={{ key: 'hospital_patient_influx_over_time_chart', }} - values={trimLeadingNullValues(data.hospital_lcps.values, 'influx_covid_patients')} + values={trimLeadingNullValues(valuesWithoutDateRange, 'influx_covid_patients')} timeframe={hospitalPatientInfluxOverTimeTimeframe} seriesConfig={[ {