mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure config._flow is non-enumerable so is ignored by JSON.stringify
Fixes https://github.com/pdmangel/node-red-contrib-openhab2/issues/36
This commit is contained in:
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
Block a user