mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix handling empty rules
This commit is contained in:
parent
4f77bbeb2b
commit
4dbebefb45
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user