mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-23 11:44:06 -08:00
🐛 Fix issue that Start-Node did not get reset (#2425)
* N8N-2549 Editor UI - Disabled start node when reseting new workflow * N8N-2549 Editor UI - Disabled start node when reseting new workflow, reseting the position of the default node * N8N-2549 Updated Editor-ui - Resetting Default Node (disable, position and all props) when reseting new workflow * N8N-2549 Remove comment
This commit is contained in:
parent
9f7113c94b
commit
0022c7eb09
|
@ -1607,7 +1607,9 @@ export default mixins(
|
|||
await this.$store.dispatch('workflows/setNewWorkflowName');
|
||||
this.$store.commit('setStateDirty', false);
|
||||
|
||||
await this.addNodes([DEFAULT_START_NODE]);
|
||||
const nodes = [{...DEFAULT_START_NODE}];
|
||||
|
||||
await this.addNodes(nodes);
|
||||
this.$store.commit('setStateDirty', false);
|
||||
|
||||
this.setZoomLevel(1);
|
||||
|
|
Loading…
Reference in a new issue