devabhishekpal commented on code in PR #7037:
URL: https://github.com/apache/ozone/pull/7037#discussion_r1713184923


##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/missingContainers/missingContainers.tsx:
##########
@@ -398,22 +398,22 @@ export class MissingContainers extends 
React.Component<Record<string, object>, I
           <Tabs defaultActiveKey='1'>
             <Tabs.TabPane
               key='1'
-              tab={`Missing${(missingDataSource && missingDataSource.length > 
0) ? ` (${missingDataSource.length})` : ''}`}>
+              tab={`Missing${(missingDataSource?.length > 0) ? ` 
(${missingDataSource.length})` : ''}`}>

Review Comment:
   I think we can remove the check and shorten it to:
   ```suggestion
                 tab={`Missing ${missingDataSource?.length ?? ''}`}>
   ```



-- 
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]

Reply via email to