🐛 Fix warning on save

This commit is contained in:
Jan Oberhauser 2019-10-04 12:43:48 +02:00
parent 5829ed2e3d
commit 1ab8896c37

View file

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