mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Fix bug that node was not selected after rename
This commit is contained in:
@@ -1465,6 +1465,10 @@ export default mixins(
|
|||||||
|
|
||||||
// Add the new updated nodes
|
// Add the new updated nodes
|
||||||
await this.addNodes(Object.values(workflow.nodes), workflow.connectionsBySourceNode);
|
await this.addNodes(Object.values(workflow.nodes), workflow.connectionsBySourceNode);
|
||||||
|
|
||||||
|
// Make sure that the node is selected again
|
||||||
|
this.deselectAllNodes();
|
||||||
|
this.nodeSelectedByName(newName);
|
||||||
},
|
},
|
||||||
async addNodes (nodes: INodeUi[], connections?: IConnections) {
|
async addNodes (nodes: INodeUi[], connections?: IConnections) {
|
||||||
if (!nodes || !nodes.length) {
|
if (!nodes || !nodes.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user