🐛 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:
Oliver Trajceski 2021-11-15 17:31:00 +01:00 committed by GitHub
parent 9f7113c94b
commit 0022c7eb09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);