Skip to content

Commit

Permalink
catch missing template and add heatpump monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
trystanlea committed Feb 5, 2019
1 parent a263942 commit 30b9b50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Views/device_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ var device_dialog =
// console.log("deviceType:"+device_dialog.deviceType)
// console.log(device_dialog.templates)
var template = device_dialog.templates[device_dialog.deviceType];
$('#template-description').html('<em style="color:#888">'+template.description+'</em>');
if (template!=undefined) {
$('#template-description').html('<em style="color:#888">'+template.description+'</em>');
}
$('#template-info').show();
},

Expand Down

0 comments on commit 30b9b50

Please sign in to comment.