From 2b22926b2f05c6ded13bc69333fa271fa6ee8c25 Mon Sep 17 00:00:00 2001 From: baldo Date: Sun, 13 Aug 2017 19:29:36 +0200 Subject: [PATCH] Fix: Setting site for missing node was bogus. --- server/services/monitoringService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/services/monitoringService.js b/server/services/monitoringService.js index 067473d..462b34d 100644 --- a/server/services/monitoringService.js +++ b/server/services/monitoringService.js @@ -118,7 +118,7 @@ angular.module('ffffng') if (nodeData === 'missing') { nodeDataForStoring = { mac: node.mac, - site: nodeData.site, + site: _.isUndefined(row) ? null : row.site, state: 'OFFLINE', // jshint -W106 lastSeen: _.isUndefined(row) ? moment() : moment.unix(row.last_seen),