mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-11 20:56:13 +00:00
Whoops, fixed the API callbacks
This commit is contained in:
1 parent
366e03456e
commit
58cd933a5d
1 file changed
+5
-5
@@ -33,9 +33,9 @@ function inventreeGet(url, filters={}, callback=null) {
|
||||
console.error('Error on GET at ' + url);
|
||||
console.error(thrownError);
|
||||
if (callback) {
|
||||
return {
|
||||
error: thrownError;
|
||||
}
|
||||
callback({
|
||||
error: thrownError
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -70,8 +70,8 @@ function inventreeUpdate(url, data, callback=null, final=false) {
|
||||
console.error(thrownError);
|
||||
if (callback) {
|
||||
callback({
|
||||
error: thrownError;
|
||||
})
|
||||
error: thrownError
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user