Bezeichnung state in Kabelüberwacchung Modul Kue705FO funktioniert

This commit is contained in:
ISA
2024-10-23 18:57:02 +02:00
parent e602a31b7b
commit 2de4cf6403
2 changed files with 9 additions and 2 deletions

View File

@@ -131,8 +131,7 @@ function Kabelueberwachung() {
{console.log(
`Module Data (Rack ${activeRack}, Slot ${index + 1}):`,
slot
)}{" "}
{/* Log each module's data */}
)}
</div>
))}
</div>

View File

@@ -262,6 +262,14 @@ function Kue705FO({
goTDR(); // Wenn TDR aktiv ist, starte goTDR
}
};
useEffect(() => {
setCurrentModulName(modulName);
}, [modulName]);
useEffect(() => {
setCurrentDisplayValue(schleifenwiderstand);
}, [schleifenwiderstand]);
return (
<div className="relative bg-gray-300 w-[116px] h-[390px] border border-gray-400 scale-110 top-3">
{isModulPresent ? (