Fix label issue in some components

This commit is contained in:
Zaid Humaimidi committed 2023-12-18 11:33:49 -08:00
1 parent ddb240d542
commit bfbbdb12ca
3 files changed
+13 -5

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ interface Attrs {
device: FlatDevice;
parameters: Record<
string,
{ type?: Expression; label: string; parameter: Expression }
{ type?: Expression; label: Expression; parameter: Expression }
>;
deviceQuery: QueryResponse;
}
@@ -62,7 +62,7 @@ const component: ClosureComponent<Attrs> = () => {
: "none";
},
},
m("th", parameter["label"]),
m("th", evaluateExpression(parameter.label, device)),
m("td", p),
);
});