Update to all catch functions.
This commit is contained in:
@@ -141,7 +141,7 @@ function handle_update_event_exhibit_staff_passcode(exhibit_id, reset_passcode)
|
||||
// disable_open_lead_retrieval_btn = false;
|
||||
// disable_reset_passcode_btn = false;
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// .catch(function (error: any) {
|
||||
// console.log('Failed to update passcode.', error);
|
||||
// disable_open_lead_retrieval_btn = true;
|
||||
// disable_reset_passcode_btn = true;
|
||||
|
||||
@@ -396,7 +396,7 @@ async function handle_update__exhibit({obj_type, obj_id, data}: {obj_type: strin
|
||||
}
|
||||
return update__obj_result;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('Something went wrong.');
|
||||
console.log(error);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user