fix: TDR-Chart aktualisiert sich sofort nach dem Setzen der Referenzkurve

- useEffect hört jetzt auch auf Änderungen in referenceChartData
- Kein manuelles Schließen und Neuladen des Modals mehr nötig
This commit is contained in:
Ismail Ali
2025-03-30 21:14:32 +02:00
parent 826977c9c7
commit 787a43cadb
3 changed files with 13 additions and 3 deletions

View File

@@ -199,7 +199,13 @@ const TDRChart: React.FC<{ isFullScreen: boolean }> = ({ isFullScreen }) => {
}
}
});
}, [JSON.stringify(tdrChartData), selectedSlot, selectedChartType]);
}, [
JSON.stringify(tdrChartData),
JSON.stringify(referenceChartData),
selectedSlot,
selectedChartType,
]);
//--------------------------------------
return (
<div style={{ width: "100%", height: isFullScreen ? "90%" : "28rem" }}>