mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	fix handling empty rules
This commit is contained in:
		| @@ -217,6 +217,10 @@ module.exports = function(RED) { | ||||
|  | ||||
|     function applyRules(node, msg, property,state,done) { | ||||
|         if (!state) { | ||||
|             if (node.rules.length === 0) { | ||||
|                 done(undefined, []); | ||||
|                 return; | ||||
|             } | ||||
|             state = { | ||||
|                 currentRule: 0, | ||||
|                 elseflag: true, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user