fix: Bezeichnung in analoge Eingänge anzeigen
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user