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