From 2de4cf6403d8a72fc910270a69b67e786c039bb0 Mon Sep 17 00:00:00 2001 From: ISA Date: Wed, 23 Oct 2024 18:57:02 +0200 Subject: [PATCH] =?UTF-8?q?Bezeichnung=20state=20in=20Kabel=C3=BCberwacchu?= =?UTF-8?q?ng=20Modul=20Kue705FO=20funktioniert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/kabelueberwachung/page.jsx | 3 +-- components/modules/Kue705FO.jsx | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/kabelueberwachung/page.jsx b/app/kabelueberwachung/page.jsx index 683f5b6..c85443f 100644 --- a/app/kabelueberwachung/page.jsx +++ b/app/kabelueberwachung/page.jsx @@ -131,8 +131,7 @@ function Kabelueberwachung() { {console.log( `Module Data (Rack ${activeRack}, Slot ${index + 1}):`, slot - )}{" "} - {/* Log each module's data */} + )} ))} diff --git a/components/modules/Kue705FO.jsx b/components/modules/Kue705FO.jsx index 506968b..35efffc 100644 --- a/components/modules/Kue705FO.jsx +++ b/components/modules/Kue705FO.jsx @@ -262,6 +262,14 @@ function Kue705FO({ goTDR(); // Wenn TDR aktiv ist, starte goTDR } }; + useEffect(() => { + setCurrentModulName(modulName); + }, [modulName]); + + useEffect(() => { + setCurrentDisplayValue(schleifenwiderstand); + }, [schleifenwiderstand]); + return (
{isModulPresent ? (