From d5b79a92c4ff4b292b7cba74311e8574821b180a Mon Sep 17 00:00:00 2001 From: si458 Date: Wed, 15 Nov 2023 22:47:01 +0000 Subject: [PATCH] fix windows columns showing OK/BAD Signed-off-by: si458 --- views/default.handlebars | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/default.handlebars b/views/default.handlebars index a30dcfb6..32b5bfa3 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -4760,13 +4760,13 @@ r += '' + groupingTags + ''; } if (deviceViewSettings.devsCols.indexOf('windowsav') >= 0) { // Windows AV - r += '' + (node.wsc ? (node.wsc.antiVirus == 'OK' ? "OK" : "BAD") : ""); + r += '' + ((node.wsc && node.wsc.antiVirus != null) ? (node.wsc.antiVirus == 'OK' ? "OK" : "BAD") : ""); } if (deviceViewSettings.devsCols.indexOf('windowsupdate') >= 0) {// Windows Update - r += '' + (node.wsc ? (node.wsc.autoUpdate == 'OK' ? "OK" : "BAD") : ""); + r += '' + ((node.wsc && node.wsc.autoUpdate != null) ? (node.wsc.autoUpdate == 'OK' ? "OK" : "BAD") : ""); } if (deviceViewSettings.devsCols.indexOf('windowsfirewall') >= 0) { // Windows Firewall - r += '' + (node.wsc ? (node.wsc.firewall == 'OK' ? "OK" : "BAD") : ""); + r += '' + ((node.wsc && node.wsc.firewall != null) ? (node.wsc.firewall == 'OK' ? "OK" : "BAD") : ""); } if (deviceViewSettings.devsCols.indexOf('links') >= 0) { r += '' + getShortRouterLinks(node); } // Links if (deviceViewSettings.devsCols.indexOf('user') >= 0) { r += '' + getUserShortStr(node); } // User