diff --git a/Bootstrap.Admin/Scripts/Longbow.Common.js b/Bootstrap.Admin/Scripts/Longbow.Common.js index ea9c04e5..014d5af7 100644 --- a/Bootstrap.Admin/Scripts/Longbow.Common.js +++ b/Bootstrap.Admin/Scripts/Longbow.Common.js @@ -140,7 +140,7 @@ success(result); }, error: function (XMLHttpRequest, textStatus, errorThrown) { - lgbSwal({ title: errorThrown, text: XMLHttpRequest.responseJSON.Message, type: 'error' }); + if (XMLHttpRequest.responseJSON) lgbSwal({ title: errorThrown, text: XMLHttpRequest.responseJSON.Message, type: 'error' }); } }); }