Handled cases where bis_program_code is not available.
This commit is contained in:
1 parent
b4c4d51b07
commit
87c14f0203
1 file changed
+4
-2
@@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user