Skip to content
Snippets Groups Projects
Commit 24c463e8 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Do a small code refactoring

parent 348b16c0
No related branches found
No related tags found
No related merge requests found
......@@ -101,10 +101,10 @@ class PersonSelect extends VPULitElementJQuery {
};
},
error: function (jqXHR, textStatus, errorThrown) {
const body = jqXHR.responseJSON !== undefined && jqXHR.responseJSON["hydra:description"] !== undefined ?
jqXHR.responseJSON["hydra:description"] : textStatus;
if (textStatus !== "abort") {
const body = jqXHR.responseJSON !== undefined && jqXHR.responseJSON["hydra:description"] !== undefined ?
jqXHR.responseJSON["hydra:description"] : textStatus;
notify({
"summary": i18n.t('person-select.error-summary'),
"body": body,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment