Skip to content

Commit

Permalink
fix on navigate for new workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Jan 19, 2024
1 parent 8506769 commit 1fa3328
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions client/src/components/Workflow/Editor/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -688,11 +688,14 @@ export default {
const runUrl = `/workflows/run?id=${this.id}`;
this.onNavigate(runUrl);
},
onNavigate(url) {
this.onSave(true).then(() => {
this.hasChanges = false;
this.$router.push(url);
});
async onNavigate(url) {
if (this.isNewTempWorkflow) {
await this.onCreate();
}
await this.onSave(true);
this.hasChanges = false;
this.$router.push(url);
},
onSave(hideProgress = false) {
if (!this.nameValidate()) {
Expand Down

0 comments on commit 1fa3328

Please sign in to comment.