Skip to content

Commit

Permalink
fix: Prevent TypeError on undefined values #324
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Mar 24, 2020
1 parent 0c37c7e commit f405067
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ZwaveClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@ function addEmptyNodes (nodes) {
node_id: i,
type: i === 0 ? 'Main controller' : '',
status: i === 0 ? '' : 'Removed',
failed: true
failed: true,
values: {}
}
}
}
Expand Down

0 comments on commit f405067

Please sign in to comment.