Update to all catch functions.

This commit is contained in:
Scott Idem
2025-11-13 20:15:09 -05:00
parent 7cd59bfaac
commit 88d36d512d
52 changed files with 170 additions and 170 deletions

View File

@@ -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(() => {