1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Handle missing wires prop and string x/y props on import

This commit is contained in:
Nick O'Leary 2018-11-13 13:29:48 +00:00
parent bfd98f3767
commit e6e7747ae1
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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,