Mock daten
This commit is contained in:
@@ -103,7 +103,7 @@ const ChartSwitcher: React.FC<ChartSwitcherProps> = ({ isOpen, onClose }) => {
|
||||
loadLoopChartData.loadLoopChartData();
|
||||
}, 10); // kleiner Delay, damit Redux-State sicher aktualisiert ist
|
||||
}
|
||||
}, [isOpen, activeMode, slotNumber, dispatch, loadLoopChartData]);
|
||||
}, [isOpen, activeMode, slotNumber, dispatch]);
|
||||
|
||||
return (
|
||||
<ReactModal
|
||||
|
||||
@@ -76,7 +76,7 @@ export const useLoopChartLoader = () => {
|
||||
dispatch(setLoopMeasurementCurveChartData([]));
|
||||
dispatch(setChartOpen(false));
|
||||
if (!hasShownNoDataAlert.current) {
|
||||
alert("⚠️ Keine Messdaten im gewählten Zeitraum gefunden.");
|
||||
alert("⚠️ Keine Messdaten im gewählten Zeitraum gefunden");
|
||||
hasShownNoDataAlert.current = true; // ⬅️ Nur einmal zeigen
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import { useSelector } from "react-redux";
|
||||
import { RootState } from "@/redux/store";
|
||||
import {
|
||||
Chart as ChartJS,
|
||||
LineController,
|
||||
LineElement,
|
||||
PointElement,
|
||||
LinearScale,
|
||||
@@ -20,6 +21,7 @@ import { de } from "date-fns/locale";
|
||||
import { differenceInHours, parseISO } from "date-fns";
|
||||
|
||||
ChartJS.register(
|
||||
LineController,
|
||||
LineElement,
|
||||
PointElement,
|
||||
LinearScale,
|
||||
|
||||
Reference in New Issue
Block a user