fix: Bezeichnung in analoge Eingänge anzeigen

This commit is contained in:
ISA
2025-06-19 13:47:10 +02:00
parent b804fb88c1
commit a62c7d10b9
6 changed files with 13 additions and 10 deletions

View File

@@ -54,7 +54,10 @@ export default function AnalogInputsTable({
</thead>
<tbody>
{Object.values(analogInputs)
.filter((e) => e?.id !== null && e?.id !== undefined)
.filter(
(e) =>
e && typeof e.id === "number" && typeof e.label === "string"
)
.map((e, index) => (
<tr
key={index}
@@ -86,7 +89,7 @@ export default function AnalogInputsTable({
className="border p-2"
onClick={() => handleSelect(e.id!)}
>
{e.name || "----"}
{e.label || "----"}
</td>
<td className="border p-2 text-center">