Isolationwswert in isoDisplay statt Schleifenwert
This commit is contained in:
@@ -40,9 +40,7 @@ function Kue705FO({
|
||||
const [isoGreaterThan200, setIsoGreaterThan200] = useState(">200 MOhm");
|
||||
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [currentDisplayValue, setCurrentDisplayValue] = useState(
|
||||
schleifenwiderstand || "0"
|
||||
);
|
||||
const [isoDisplayValue, setIsoDisplayValue] = useState(isolationswert);
|
||||
const [showModal, setShowModal] = useState(false);
|
||||
const [showChartModal, setShowChartModal] = useState(false);
|
||||
const [chartData, setChartData] = useState(null);
|
||||
@@ -355,7 +353,7 @@ function Kue705FO({
|
||||
// Funktion zum Blinken des Textes oder Icons
|
||||
const setBlinkingText = (text) => {
|
||||
intervalId = setInterval(() => {
|
||||
setCurrentDisplayValue((prevValue) =>
|
||||
setIsoDisplayValue((prevValue) =>
|
||||
prevValue === text ? (
|
||||
<i
|
||||
className="bi bi-exclamation-triangle"
|
||||
@@ -386,10 +384,10 @@ function Kue705FO({
|
||||
setBlinkingText(loopFaultDisplayText);
|
||||
} else if (kueOverflow?.[slotIndex] === 1) {
|
||||
clearInterval(intervalId);
|
||||
setCurrentDisplayValue(isoGreaterThan200);
|
||||
setIsoDisplayValue(isoGreaterThan200);
|
||||
} else {
|
||||
clearInterval(intervalId);
|
||||
setCurrentDisplayValue(isolationswert); // Standardanzeige
|
||||
setIsoDisplayValue(isolationswert); // Standardanzeige
|
||||
}
|
||||
|
||||
// Cleanup bei Änderungen des Status oder Schließen des Effekts
|
||||
@@ -486,7 +484,7 @@ function Kue705FO({
|
||||
: ""
|
||||
}
|
||||
>
|
||||
{currentDisplayValue}
|
||||
{isoDisplayValue}
|
||||
</span>
|
||||
|
||||
{kuePSTmMinus96V?.[slotIndex] !== 1 &&
|
||||
|
||||
Reference in New Issue
Block a user