diff --git a/config/webVersion.ts b/config/webVersion.ts index 682ef0b..4ab39eb 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.176"; +const webVersion = "1.6.177"; export default webVersion; diff --git a/pages/kabelueberwachung.tsx b/pages/kabelueberwachung.tsx index e4ffa15..f44e488 100644 --- a/pages/kabelueberwachung.tsx +++ b/pages/kabelueberwachung.tsx @@ -5,6 +5,7 @@ import Kue705FO from "../components/main/kabelueberwachung/kue705FO/Kue705FO"; import { useDispatch, useSelector } from "react-redux"; import { AppDispatch } from "../redux/store"; // Adjust the path to your Redux store file import { RootState } from "../redux/store"; // Adjust the path to your Redux store file +import { fetchKueDataThunk } from "../redux/thunks/fetchKueDataThunk"; function Kabelueberwachung() { const dispatch: AppDispatch = useDispatch(); @@ -116,6 +117,12 @@ function Kabelueberwachung() { const dia0Iso = loopData["DIA0"]?.[3]; //------------------------------------------------------------ + useEffect(() => { + if (kueIso.length === 0) { + console.log("📦 Lade KUE-Daten aus fetchKueDataThunk..."); + dispatch(fetchKueDataThunk()); + } + }, []); //---------------------------------------------------------------- return (