Skip to content

Commit

Permalink
Merge pull request #561 from webitel/feature/code-save-failed-popup
Browse files Browse the repository at this point in the history
fix: now popup doesn't shows when naming already existed [WTEL-3894]
  • Loading branch information
dlohvinov authored Nov 23, 2023
2 parents 7e8a721 + 3e5c9f4 commit e43dde1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/routing/modules/flow/components/opened-flow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ export default {
await this.save();
this.hideSaveFailedPopup();
} catch (err) {
this.isSaveFailedPopup = true;
// Required to prevent an open popup when the error is related to "already existed name"
this.isSaveFailedPopup = err.response?.data?.id !== 'store.sql_routing_schema.save.valid.name';
throw err;
}
},
Expand Down

0 comments on commit e43dde1

Please sign in to comment.