Fix: Setting site for missing node was bogus.

This commit is contained in:
baldo 2017-08-13 19:29:36 +02:00
parent 9f2bd4035f
commit 2b22926b2f

View file

@ -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),