From 0022c7eb099374eb0b9346bfe8539a05d7324507 Mon Sep 17 00:00:00 2001 From: Oliver Trajceski Date: Mon, 15 Nov 2021 17:31:00 +0100 Subject: [PATCH] :bug: 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 --- packages/editor-ui/src/views/NodeView.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index 3e6abff170..b8b5ad7d37 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -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);