You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/10/18 06:11:48 UTC

[GitHub] [ozone] smitajoshi12 commented on a diff in pull request #3837: HDDS-7248. Recon: Expand the container status page to show all unhealthy container states

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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org