diff --git a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx index bbe3335..e7d8f3f 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx @@ -170,6 +170,29 @@ const LoopMeasurementChart = () => { } }, [vonDatum, bisDatum, formatierteDaten, dispatch]); //---------------------------------------------------------------- + useEffect(() => { + if (formatierteDaten.length > 0) { + console.log( + "📊 Brush wird nach Modus-Wechsel aktualisiert:", + selectedMode + ); + + dispatch( + setBrushRange({ + startIndex: 0, + endIndex: formatierteDaten.length - 1, // Stellt sicher, dass der Brush-Bereich korrekt gesetzt wird + startDate: new Date(formatierteDaten[0].zeit) + .toISOString() + .split("T")[0], + endDate: new Date(formatierteDaten[formatierteDaten.length - 1].zeit) + .toISOString() + .split("T")[0], + }) + ); + } + }, [selectedMode, formatierteDaten, dispatch]); + + //-------------------------------------------------------------------------------- return (
diff --git a/config/webVersion.ts b/config/webVersion.ts index 2cc9dcb..64fe3fc 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.125"; +const webVersion = "1.6.126"; export default webVersion;