1
0
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:
Hiroyasu Nishiyama 2021-05-23 10:01:45 +09:00
parent 4f77bbeb2b
commit 4dbebefb45

View File

@ -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,