Update to all catch functions.
This commit is contained in:
@@ -266,7 +266,7 @@ export let post_object = async function post_object(
|
||||
// }
|
||||
// //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