mirror of https://github.com/node-red/node-red.git
parent
674eb36e15
commit
e3acc49d5e
|
|
@ -158,9 +158,12 @@ module.exports = function(RED) {
|
|||
if(!keys || !keys.length) return null;
|
||||
keys.forEach(key => {
|
||||
let val = srcUserProperties[key];
|
||||
if(typeof val == "string") {
|
||||
if(typeof val === "string") {
|
||||
count++;
|
||||
_clone[key] = val;
|
||||
} else if (typeof val === "number") {
|
||||
count++;
|
||||
_clone[key] = val.toString();
|
||||
}
|
||||
});
|
||||
if(count) properties.userProperties = _clone;
|
||||
|
|
|
|||
Loading…
Reference in New Issue