Skip to content

Commit

Permalink
fix for missing device description
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Jun 28, 2019
1 parent 37b18da commit f25b112
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/input/Views/input_view.php
Expand Up @@ -285,6 +285,7 @@ function update(){
if (nodes_display[inputs[z].nodeid]==undefined) nodes_display[inputs[z].nodeid] = true;
// expand if only one feed available
if (devices[inputs[z].nodeid].inputs==undefined) devices[inputs[z].nodeid].inputs = [];
if (devices[inputs[z].nodeid].description==undefined) devices[inputs[z].nodeid].description = "";
// expand if only one feed available or state locally cached in cookie
if (firstLoad && Object.keys(devices).length > 1 && Object.keys(nodes_display).length == 0) {
nodes_display[inputs[z].nodeid] = false;
Expand Down

0 comments on commit f25b112

Please sign in to comment.