fix(subdevices): use name field instead of undefined field in select
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
for (sid in configNode.deviceList) {
|
for (sid in configNode.deviceList) {
|
||||||
var device = configNode.deviceList[sid];
|
var device = configNode.deviceList[sid];
|
||||||
if (device.internalModel === model) {
|
if (device.internalModel === model) {
|
||||||
$('#node-input-sid').append('<option value="' + sid + '">' + device.desc + ' - ' + sid + '</option>');
|
$('#node-input-sid').append('<option value="' + sid + '">' + device.name + ' - ' + sid + '</option>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(node.sid) {
|
if(node.sid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user