node page: don't display "undefined" if node has never been saved yet
This commit is contained in:
parent
2cc533c481
commit
d95b41315c
|
@ -24,6 +24,9 @@ export function getNode (nodeid) {
|
||||||
export function createNode (nodeid) {
|
export function createNode (nodeid) {
|
||||||
return {
|
return {
|
||||||
'node_id': nodeid,
|
'node_id': nodeid,
|
||||||
|
'hostname': '',
|
||||||
|
'owner': '',
|
||||||
|
'lastseen': null,
|
||||||
'wireless': {
|
'wireless': {
|
||||||
'channel24': config.node.channel24,
|
'channel24': config.node.channel24,
|
||||||
'channel5': config.node.channel5,
|
'channel5': config.node.channel5,
|
||||||
|
|
Loading…
Reference in New Issue