Fix typeError on saving protocol as draft [SCI-11294]

This commit is contained in:
Andrej 2024-11-21 16:03:36 +01:00
parent 13dd0e3704
commit 4e64683470

View file

@ -154,7 +154,7 @@ export default {
$.post(this.protocol.attributes.urls.save_as_draft_url, (result) => {
this.creatingDraft = false;
window.location.replace(result.url);
}).error(() => {
}).fail(() => {
this.creatingDraft = false;
HelperModule.flashAlertMsg(this.i18n.t('errors.general'));
});