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

force redraw after node installation

This commit is contained in:
Hiroyasu Nishiyama 2020-03-31 16:48:20 +09:00
parent 2e364b6d9a
commit e5150ea012
2 changed files with 7 additions and 2 deletions

View File

@ -1499,7 +1499,7 @@ RED.nodes = (function() {
l.target = newNodeMap[l.target.id]; l.target = newNodeMap[l.target.id];
} }
}); });
RED.view.redraw(true); RED.view.redraw(true, true);
} }
}); });
}, },

View File

@ -3765,7 +3765,12 @@ RED.view = (function() {
} }
}, },
redraw: function(updateActive) { redraw: function(updateActive, force) {
if (force) {
activeNodes = [];
activeLinks = [];
redraw();
}
if (updateActive) { if (updateActive) {
updateActiveNodes(); updateActiveNodes();
updateSelection(); updateSelection();