diff --git a/components/main/kabelueberwachung/kue705FO/Charts/ChartSwitcher.tsx b/components/main/kabelueberwachung/kue705FO/Charts/ChartSwitcher.tsx index 1851352..64b1ac6 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/ChartSwitcher.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/ChartSwitcher.tsx @@ -1,10 +1,10 @@ "use client"; // /components/modules/kue705FO/charts/ChartSwitcher.tsx +import dynamic from "next/dynamic"; import React, { useState, useEffect } from "react"; import ReactModal from "react-modal"; import LoopChartActionBar from "./LoopMeasurementChart/LoopChartActionBar"; import TDRChartActionBar from "./TDRChart/TDRChartActionBar"; -import LoopMeasurementChart from "./LoopMeasurementChart/LoopMeasurementChart"; import TDRChart from "./TDRChart/TDRChart"; import { useSelector, useDispatch } from "react-redux"; import { AppDispatch } from "../../../../../redux/store"; @@ -31,6 +31,10 @@ const ChartSwitcher: React.FC = ({ onClose, slotIndex, }) => { + const LoopMeasurementChart = dynamic( + () => import("./LoopMeasurementChart/LoopMeasurementChart.client"), + { ssr: false } + ); const dispatch = useDispatch(); const chartTitle = useSelector( (state: RootState) => state.loopChartType.chartTitle diff --git a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.client.tsx similarity index 96% rename from components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx rename to components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.client.tsx index ccc07ad..498fbf6 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.client.tsx @@ -98,7 +98,7 @@ const LoopMeasurementChart = () => { zoom: { pan: { enabled: true, - mode: "x", + mode: "x" as const, }, zoom: { wheel: { @@ -107,7 +107,7 @@ const LoopMeasurementChart = () => { pinch: { enabled: true, }, - mode: "x", + mode: "x" as const, }, }, }, @@ -115,10 +115,10 @@ const LoopMeasurementChart = () => { x: { type: "time" as const, time: { - unit: "day", + unit: "day" as const, tooltipFormat: "dd.MM.yyyy HH:mm", displayFormats: { - day: "dd.MM", // z. B. 02.04 + day: "dd.MM", }, }, title: { diff --git a/config/webVersion.ts b/config/webVersion.ts index aeeb7c5..5f382bb 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.199"; +const webVersion = "1.6.200"; export default webVersion; diff --git a/redux/thunks/fetchAllTDMThunk.ts b/redux/thunks/fetchAllTDMThunk.ts index 51b2f77..72d8ba7 100644 --- a/redux/thunks/fetchAllTDMThunk.ts +++ b/redux/thunks/fetchAllTDMThunk.ts @@ -7,7 +7,7 @@ import { fetchAllTDMDataFromServer } from "../../services/fetchAllTDMData"; export const fetchAllTDMData = createAsyncThunk( "tdmChart/fetchAllTDMData", async (_, { getState, rejectWithValue }) => { - const currentData = (getState() as RootState).tdmChart.data; + const currentData = (getState() as RootState).tdmChartSlice.data; const newData = await fetchAllTDMDataFromServer(); if (newData.every((entry) => !entry)) { diff --git a/redux/thunks/fetchAllTDRChartThunk.ts b/redux/thunks/fetchAllTDRChartThunk.ts index ec8fd4f..1c2bc7c 100644 --- a/redux/thunks/fetchAllTDRChartThunk.ts +++ b/redux/thunks/fetchAllTDRChartThunk.ts @@ -9,7 +9,7 @@ export const fetchAllTDRChartData = createAsyncThunk( "tdrChart/fetchAllTDRChartData", async (_, { getState, rejectWithValue }) => { const state = getState() as RootState; - const currentData = state.tdrChart.data; + const currentData = state.tdrChartSlice.data; const newData = await fetchAllTDRChartDataFromServer(); // ✅ Service aufrufen diff --git a/redux/thunks/fetchOpcUaSettingsThunk.ts b/redux/thunks/fetchOpcUaSettingsThunk.ts index af0f5c7..2ecb1bd 100644 --- a/redux/thunks/fetchOpcUaSettingsThunk.ts +++ b/redux/thunks/fetchOpcUaSettingsThunk.ts @@ -6,7 +6,7 @@ import { setOpcUaEncryption, setOpcUaActiveClientCount, setOpcUaNodesetName, - setOpcUaUsers, + //setOpcUaUsers, } from "../slices/opcuaSettingsSlice"; export const fetchOpcUaSettingsThunk = createAsyncThunk( @@ -19,6 +19,6 @@ export const fetchOpcUaSettingsThunk = createAsyncThunk( dispatch(setOpcUaEncryption(data.encryption)); dispatch(setOpcUaActiveClientCount(data.clientCount)); dispatch(setOpcUaNodesetName(data.nodesetName)); - dispatch(setOpcUaUsers(data.users)); + //dispatch(setOpcUaUsers(data.users)); } );