From 0910a3637129e8c6ccd6c3a3d3f8303d39b6e017 Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 14 Feb 2025 12:31:17 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Bugs=20w=C3=A4hrend=20npm=20run=20build,?= =?UTF-8?q?=20meinstens=20war=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Charts/LoopMeasurementChart/LoopMeasurementChart.tsx | 9 ++++++--- .../kue705FO/Charts/TDRChart/TDRChart.tsx | 2 +- components/main/kabelueberwachung/kue705FO/Kue705FO.tsx | 8 +------- config/webVersion.ts | 2 +- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx index 077cd11..9e0f4bb 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx @@ -4,11 +4,14 @@ import Chart from "chart.js/auto"; import "chartjs-adapter-moment"; const LoopMeasurementChart = () => { - const chartRef = useRef(null); - const chartInstance = useRef(null); + const chartRef = useRef(null); + const chartInstance = useRef(null); // Daten aus dem Redux-Store abrufen - const chartData = useSelector((state) => state.chartData.data) ?? []; + const chartData = + useSelector( + (state: { chartData: { data: any[] } }) => state.chartData.data + ) ?? []; useEffect(() => { if (chartRef.current) { diff --git a/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChart.tsx b/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChart.tsx index 9bd87e2..f6aae9b 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChart.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChart.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useRef } from "react"; import { useSelector } from "react-redux"; -import { RootState } from "../../../../redux/store"; +import { RootState } from "../../../../../../redux/store"; import Chart from "chart.js/auto"; import "chartjs-adapter-date-fns"; import { parseISO } from "date-fns"; diff --git a/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx b/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx index b75504d..297863c 100644 --- a/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx +++ b/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx @@ -435,13 +435,7 @@ const Kue705FO: React.FC = ({ - {activeButton === "Schleife" ? ( - - ) : ( - - )} - + /> )} ) : ( diff --git a/config/webVersion.ts b/config/webVersion.ts index a65e6df..5e33d1d 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.48"; +const webVersion = "1.6.49"; export default webVersion;