Merge pull request #4166 from node-red/fix-RBE-for-missing-payload

Fix RBE for missing "payload"
This commit is contained in:
Nick O'Leary
2023-05-22 12:49:07 +01:00
committed by GitHub

View File

@@ -35,7 +35,11 @@ module.exports = function(RED) {
} }
else { node.previous = {}; } else { node.previous = {}; }
} }
var value = RED.util.getMessageProperty(msg,node.property); var value;
try {
value = RED.util.getMessageProperty(msg,node.property);
}
catch(e) { }
if (value !== undefined) { if (value !== undefined) {
var t = "_no_topic"; var t = "_no_topic";
if (node.septopics) { t = topic || t; } if (node.septopics) { t = topic || t; }