layout problem with no content
layout problem with no content

file:a/index.js -> file:b/index.js
--- a/index.js
+++ b/index.js
@@ -148,7 +148,7 @@
             "widget": "data",
             "title": "Logged in users",
             "topic": appOptions.prefix + appOptions.device + "/users",
-            "value": res.stdout.replace(/\n/g, "<br />"),
+            "value": res.stdout ? res.stdout.replace(/\n/g, "<br />") : "No logged in users",
             "valuedescription": "",
             "template": "template-3",
             "icon": "fa fa-server",

comments