diff --git a/packages/node_modules/@node-red/nodes/core/common/20-inject.html b/packages/node_modules/@node-red/nodes/core/common/20-inject.html index 2cbf274ce..a5dcb061a 100644 --- a/packages/node_modules/@node-red/nodes/core/common/20-inject.html +++ b/packages/node_modules/@node-red/nodes/core/common/20-inject.html @@ -690,9 +690,9 @@ this.topic = ""; var result = getProps(items, true); this.props = result.props; - if(result.payloadType) { this.payloadType = result.payloadType; }; - if(result.payload) { this.payload = result.payload; }; - if(result.topic) { this.topic = result.topic; }; + if(result.hasOwnProperty('payloadType')) { this.payloadType = result.payloadType; }; + if(result.hasOwnProperty('payload')) { this.payload = result.payload; }; + if(result.hasOwnProperty('topic')) { this.topic = result.topic; }; }, button: { enabled: function() {