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

Update nodeTabMap when replacing unknown nodes

This commit is contained in:
Nick O'Leary 2020-03-31 15:34:48 +01:00
parent 5c06761b1a
commit e7f942eda7
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1434,6 +1434,9 @@ RED.nodes = (function() {
delete configNodes[n.id]; delete configNodes[n.id];
} else { } else {
nodes.splice(nodes.indexOf(n),1); nodes.splice(nodes.indexOf(n),1);
if (nodeTabMap[n.z]) {
delete nodeTabMap[n.z][n.id];
}
} }
reimportList.push(convertNode(n)); reimportList.push(convertNode(n));
}); });