Update to all catch functions.
This commit is contained in:
@@ -117,7 +117,7 @@ export let delete_object = async function delete_object(
|
||||
// console.log(response.data);
|
||||
// return response.data;
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// .catch(function (error: any) {
|
||||
// if (error.response && error.response.status === 404) {
|
||||
// return null; // Returning null since there were no results
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user