fix: KÜ slotnummer in der Messkurven Modal

This commit is contained in:
ISA
2025-07-28 08:29:48 +02:00
parent f79c225b71
commit 7a9fbc97dd
23 changed files with 6399 additions and 9193 deletions

View File

@@ -3,7 +3,7 @@ import { useEffect, useState } from "react";
const useLoopDisplay = (
schleifenwiderstand: number,
activeButton: "Schleife" | "TDR"
activeButton: "Schleife" | "TDR" | "ISO"
) => {
const [loopDisplayValue, setLoopDisplayValue] =
useState<number>(schleifenwiderstand);
@@ -12,6 +12,7 @@ const useLoopDisplay = (
if (activeButton === "Schleife") {
setLoopDisplayValue(schleifenwiderstand);
}
// For ISO and TDR, the value is set manually via setLoopDisplayValue
}, [schleifenwiderstand, activeButton]);
return { loopDisplayValue, setLoopDisplayValue };