From 2adaa88cf951cc9d5fd940fc0cc51717916df247 Mon Sep 17 00:00:00 2001 From: jsastriawan Date: Thu, 13 Aug 2020 09:06:26 -0700 Subject: [PATCH] Add check node.agent!=null to fix AMT only broken view. --- views/default.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/default.handlebars b/views/default.handlebars index 2f7007bd..47021344 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -5617,7 +5617,7 @@ x += ''; if ((connectivity & 1) && (meshrights & 8)) { x += ''; } //if ((connectivity & 1) && (meshrights & 8) && (node.agent.id < 5)) { x += ''; } - if ((node.agent.caps & 1) && (connectivity & 1) && (meshrights & 8) && ((meshrights == 0xFFFFFFFF) || ((meshrights & 4352) == 0))) { x += ''; } + if ((node.agent!=null) && (node.agent.caps & 1) && (connectivity & 1) && (meshrights & 8) && ((meshrights == 0xFFFFFFFF) || ((meshrights & 4352) == 0))) { x += ''; } // Custom UI if ((customui != null) && (customui.devicebuttons != null)) {