inventreeDelete was not returning the promise

This commit is contained in:
Oliver
2021-07-27 08:17:53 +10:00
parent f9918758dd
commit 57551d3ac3
6 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -416,7 +416,7 @@
});
// Wait for *all* the requests to complete
$.when.apply($, requests).then(function() {
$.when.apply($, requests).done(function() {
location.reload();
});
}
@@ -832,7 +832,7 @@
requests.push(inventreeDelete(url));
});
$.when.apply($, requests).then(function() {
$.when.apply($, requests).done(function() {
reloadSupplierPartTable();
});
}