Handled cases where bis_program_code is not available.

This commit is contained in:
Arif Budiman 2025-04-20 12:36:13 -07:00
parent b4c4d51b07
commit 87c14f0203

View file

@ -114,10 +114,12 @@ async function parseProgramDetail(item) {
} }
) )
.then(response => { .then(response => {
// console.log('Retrieved program detail: bis_program_code ' + item.pgmCd)
return response.data return response.data
}) })
.catch(error => { .catch(function () {
console.log(error) // The provider/server may not have details on every single programs.
// console.log('Unavailable program detail: bis_program_code ' + item.pgmCd)
}) })
} }