2
0

fix(all node): fix only filters in conf

Close #20
This commit is contained in:
Pierre CLEMENT
2018-01-18 20:21:37 +01:00
parent 809f9a6efb
commit 72b7bed6ee
3 changed files with 11 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ module.exports = (RED) => {
if (this.gateway) {
this.on('input', (msg) => {
// Filter input
if(msg.payload.model && msg.payload.sid) {
if(msg.payload && msg.payload.model && msg.payload.sid) {
if(!this.isDeviceValid(msg.payload)) {
msg = null;
}