mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix search errors
- Do not show API error messages for requests which were intentionally aborted - Prevents a large number of error messages being displayed when search text is changed
This commit is contained in:
parent
ac721a544d
commit
27dac5af97
@ -179,6 +179,11 @@ function showApiError(xhr, url) {
|
|||||||
var title = null;
|
var title = null;
|
||||||
var message = null;
|
var message = null;
|
||||||
|
|
||||||
|
if (xhr.statusText == 'abort') {
|
||||||
|
// Don't show errors for requests which were intentionally aborted
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (xhr.status || 0) {
|
switch (xhr.status || 0) {
|
||||||
// No response
|
// No response
|
||||||
case 0:
|
case 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user