Mock Dateien für TDM erstellt:
Eine Liste mit den letzten 100 TDR Messungen des Slots
This commit is contained in:
@@ -8,6 +8,7 @@ import { RootState } from "../redux/store"; // Adjust the path to your Redux sto
|
||||
import { fetchAllTDRChartData } from "../redux/thunks/fetchAllTDRChartThunk";
|
||||
import { fetchAllTDRReferenceChartThunk } from "../redux/thunks/fetchAllTDRReferenceChartThunk";
|
||||
import { fetchLoopChartDataThunk } from "../redux/thunks/fetchLoopChartDataThunk";
|
||||
import { fetchAllTDMData } from "../redux/thunks/fetchAllTDMThunk";
|
||||
|
||||
function Kabelueberwachung() {
|
||||
const dispatch: AppDispatch = useDispatch();
|
||||
@@ -143,7 +144,15 @@ function Kabelueberwachung() {
|
||||
const dia0Iso = loopData["DIA0"]?.[3];
|
||||
|
||||
//------------------------------------------------------------
|
||||
const tdmData = useSelector((state) => state.tdmChart.data);
|
||||
|
||||
useEffect(() => {
|
||||
if (!tdmData || tdmData.length === 0) {
|
||||
dispatch(fetchAllTDMData());
|
||||
}
|
||||
}, [dispatch, tdmData]);
|
||||
|
||||
//----------------------------------------------------------------
|
||||
return (
|
||||
<div className="bg-gray-100 flex-1 p-6 text-black xl:p-4 2xl:p-6 h-[calc(100vh-13vh-8vh)]">
|
||||
<h1 className="text-2xl xl:text-xl mb-4">Kabelüberwachung</h1>
|
||||
|
||||
Reference in New Issue
Block a user