mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
Merge pull request #2808 from SchrodingersGat/cancel-requests
Fix search errors
This commit is contained in:
commit
b78407a7e8
@ -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