mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +08:00
Fix issue with duplicate error messages in experiments modal [SCI-484]
This commit is contained in:
parent
1c1a7c231e
commit
8a3a9451e9
1 changed files with 2 additions and 2 deletions
|
@ -66,12 +66,12 @@
|
||||||
window.location.replace(data.path);
|
window.location.replace(data.path);
|
||||||
})
|
})
|
||||||
.on('ajax:error', function(e, error) {
|
.on('ajax:error', function(e, error) {
|
||||||
|
form.clearFormErrors();
|
||||||
var msg = JSON.parse(error.responseText);
|
var msg = JSON.parse(error.responseText);
|
||||||
renderFormError(e,
|
renderFormError(e,
|
||||||
form.find("#experiment_project_id"),
|
form.find("#experiment_project_id"),
|
||||||
msg.message.toString());
|
msg.message.toString());
|
||||||
})
|
});
|
||||||
.clearFormErrors();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Reload after successfully updated experiment
|
// Reload after successfully updated experiment
|
||||||
|
|
Loading…
Reference in a new issue