smitajoshi12 commented on code in PR #3837:
URL: https://github.com/apache/ozone/pull/3837#discussion_r997756174
##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/missingContainers/missingContainers.tsx:
##########
@@ -82,7 +113,7 @@ const COLUMNS = [
key: 'replicas',
render: (replicas: IContainerReplica[]) => (
<div>
- {replicas.map(replica => {
+ {replicas && replicas.map(replica => {
Review Comment:
It is standard practice to avoid undefined and empty array mapping. Just to
make sure we have valid data before map.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]