mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix incorrect clearing of blank payload property in Inject node
Fixes #3316
This commit is contained in:
		| @@ -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() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user