From 4f6b664ad0137d9e09b9b582f8c2c526eb70fcc0 Mon Sep 17 00:00:00 2001 From: ISA Date: Wed, 7 May 2025 15:35:37 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Typisierung=20von=20timeUnit=20f=C3=BCr?= =?UTF-8?q?=20Chart.js=20X-Achse=20korrigiert=20('hour'=20|=20'day')?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Charts/LoopMeasurementChart/LoopMeasurementChart.tsx | 4 ++-- config/webVersion.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx index 994f780..a6c69da 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx @@ -77,7 +77,7 @@ const LoopMeasurementChart = () => { const from = vonDatum ? parseISO(vonDatum) : null; const to = bisDatum ? parseISO(bisDatum) : null; const durationInHours = from && to ? differenceInHours(to, from) : 9999; - const timeUnit = durationInHours <= 48 ? "hour" : "day"; + const timeUnit: "hour" | "day" = durationInHours <= 48 ? "hour" : "day"; useEffect(() => { import("chartjs-plugin-zoom").then((zoomPlugin) => { @@ -173,7 +173,7 @@ const LoopMeasurementChart = () => { x: { type: "time" as const, time: { - unit: timeUnit as const, + unit: timeUnit, tooltipFormat: "dd.MM.yyyy HH:mm:ss", displayFormats: { hour: "HH:mm", diff --git a/config/webVersion.ts b/config/webVersion.ts index 3b39881..30f0ef0 100644 --- a/config/webVersion.ts +++ b/config/webVersion.ts @@ -6,5 +6,5 @@ 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). */ -const webVersion = "1.6.393"; +const webVersion = "1.6.394"; export default webVersion;