From d95b41315cfaf3953ce6f45b17216a684602c941 Mon Sep 17 00:00:00 2001 From: Oliver Gerlich Date: Sat, 21 Jul 2018 18:50:08 +0200 Subject: [PATCH] node page: don't display "undefined" if node has never been saved yet --- webroot/js/store.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webroot/js/store.js b/webroot/js/store.js index ab9b6b9..98f7aba 100644 --- a/webroot/js/store.js +++ b/webroot/js/store.js @@ -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,