From 1ab8896c37fef0c6acc2722813d511177c2773f0 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Fri, 4 Oct 2019 12:43:48 +0200 Subject: [PATCH] :bug: Fix warning on save --- .../editor-ui/src/components/mixins/workflowHelpers.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/editor-ui/src/components/mixins/workflowHelpers.ts b/packages/editor-ui/src/components/mixins/workflowHelpers.ts index 8b7be89200..6c39c61ce4 100644 --- a/packages/editor-ui/src/components/mixins/workflowHelpers.ts +++ b/packages/editor-ui/src/components/mixins/workflowHelpers.ts @@ -422,10 +422,12 @@ export const workflowHelpers = mixins( await this.restApi().updateWorkflow(currentWorkflow, workflowData); } - this.$router.push({ - name: 'NodeViewExisting', - params: { name: workflowData.id as string, action: 'workflowSave' }, - }); + if (this.$route.params.name !== workflowData.id) { + this.$router.push({ + name: 'NodeViewExisting', + params: { name: workflowData.id as string, action: 'workflowSave' }, + }); + } this.$store.commit('removeActiveAction', 'workflowSaving');