Update to all catch functions.
This commit is contained in:
@@ -167,7 +167,7 @@ if ($ae_loc.lu_time_zone_list && $ae_loc.lu_time_zone_list.length > 0 && Math.ra
|
||||
$ae_loc.lu_time_zone_list = [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -192,7 +192,7 @@ if ($ae_loc.lu_time_zone_list && $ae_loc.lu_time_zone_list.length > 0 && Math.ra
|
||||
// $ae_loc.lu_time_zone_list = [];
|
||||
// }
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// .catch(function (error: any) {
|
||||
// console.log('No results returned or failed.', error);
|
||||
// });
|
||||
}
|
||||
@@ -221,7 +221,7 @@ if (lu_country_list && lu_country_list.length > 50 && Math.random() < 0.8) {
|
||||
// $ae_loc.lu_country_list = [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
}
|
||||
@@ -251,7 +251,7 @@ if (lu_country_subdivision_list && lu_country_subdivision_list.length > 50 && Ma
|
||||
// $ae_loc.lu_country_subdivision_list = [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
}
|
||||
@@ -577,7 +577,7 @@ async function handle_submit_form(event: any) {
|
||||
|
||||
return event_obj_create_result;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('Something went wrong.');
|
||||
console.log(error);
|
||||
return false;
|
||||
@@ -614,7 +614,7 @@ async function handle_submit_form(event: any) {
|
||||
|
||||
return event_obj_update_result;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('Something went wrong.');
|
||||
console.log(error);
|
||||
return false;
|
||||
@@ -662,7 +662,7 @@ async function handle_delete_event_obj(
|
||||
// $idaa_sess.recovery_meetings.show__modal_view = false;
|
||||
$idaa_sess.recovery_meetings.edit__event_obj = false;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('The result was null or false when trying to delete.', error);
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user