From e6e7747ae1c8829103b1516077b257939166e78e Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 13 Nov 2018 13:29:48 +0000 Subject: [PATCH] Handle missing wires prop and string x/y props on import --- .../node_modules/@node-red/editor-client/src/js/nodes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/nodes.js b/packages/node_modules/@node-red/editor-client/src/js/nodes.js index c4b8e2b34..c24d95bc0 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/nodes.js +++ b/packages/node_modules/@node-red/editor-client/src/js/nodes.js @@ -955,11 +955,11 @@ RED.nodes = (function() { def = registry.getNodeType(n.type); if (!def || def.category != "config") { var node = { - x:n.x, - y:n.y, + x:parseFloat(n.x || 0), + y:parseFloat(n.y || 0), z:n.z, type:0, - wires:n.wires, + wires:n.wires||[], inputLabels: n.inputLabels, outputLabels: n.outputLabels, icon: n.icon,