Skip to content

Commit

Permalink
馃敟 Removing try block
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed Apr 4, 2024
1 parent 120f12f commit b088bdf
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -501,17 +501,13 @@ export default defineComponent({
cb(true);
return;
}
try {
this.uiStore.addActiveAction('workflowSaving');
const saved = await this.workflowHelpers.saveCurrentWorkflow({ name });
if (saved) {
this.isNameEditEnabled = false;
}
// Exception is handled in the helper function
} finally {
this.uiStore.removeActiveAction('workflowSaving');
cb(saved);
this.uiStore.addActiveAction('workflowSaving');
const saved = await this.workflowHelpers.saveCurrentWorkflow({ name });
if (saved) {
this.isNameEditEnabled = false;
}
this.uiStore.removeActiveAction('workflowSaving');
cb(saved);
},
async handleFileImport(): Promise<void> {
const inputRef = this.$refs.importFile as HTMLInputElement | undefined;
Expand Down

0 comments on commit b088bdf

Please sign in to comment.