Update to all catch functions.
This commit is contained in:
@@ -71,7 +71,7 @@ export async function load_ae_obj_id__event_file(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -173,7 +173,7 @@ export async function load_ae_obj_li__event_file(
|
||||
return [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -238,7 +238,7 @@ export async function create_event_file_obj_from_hosted_file_async(
|
||||
console.log(result);
|
||||
return result;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log(error);
|
||||
return false; // Returning false since something may have gone wrong. Also more in line with what the API returns.
|
||||
// return error;
|
||||
@@ -662,7 +662,7 @@ export async function search__event_file(
|
||||
return [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(function () {
|
||||
|
||||
Reference in New Issue
Block a user