diff --git a/Views/device_dialog.js b/Views/device_dialog.js index 63a86f9..719d296 100644 --- a/Views/device_dialog.js +++ b/Views/device_dialog.js @@ -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(''+template.description+''); + if (template!=undefined) { + $('#template-description').html(''+template.description+''); + } $('#template-info').show(); },