mirror of https://github.com/node-red/node-red.git
Ensure config._flow is non-enumerable so is ignored by JSON.stringify
Fixes https://github.com/pdmangel/node-red-contrib-openhab2/issues/36pull/2100/head
parent
a242475b38
commit
962a29110c
|
@ -479,7 +479,7 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
try {
|
||||
conf._flow = flow;
|
||||
Object.defineProperty(conf,'_flow', {value: flow, enumerable: false, writable: true })
|
||||
newNode = new nodeTypeConstructor(conf);
|
||||
} catch (err) {
|
||||
Log.log({
|
||||
|
|
Loading…
Reference in New Issue