Fix label issue in some components
This commit is contained in:
1 parent
ddb240d542
commit
bfbbdb12ca
3 files changed
+13
-5
No files matched your search
@@ -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),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user