node page: don't display "undefined" if node has never been saved yet

This commit is contained in:
Oliver Gerlich 2018-07-21 18:50:08 +02:00
parent 2cc533c481
commit d95b41315c
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ export function getNode (nodeid) {
export function createNode (nodeid) {
return {
'node_id': nodeid,
'hostname': '',
'owner': '',
'lastseen': null,
'wireless': {
'channel24': config.node.channel24,
'channel5': config.node.channel5,