mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00: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:
		| @@ -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({ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user