devabhishekpal commented on code in PR #7037:
URL: https://github.com/apache/ozone/pull/7037#discussion_r1713185940
##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/pipelines/pipelines.tsx:
##########
@@ -116,8 +116,8 @@ const COLUMNS = [
render: (datanodes: string[]) => <div> {datanodes &&
datanodes.map(datanode =>
<div key={datanode.hostName}>
<div className='uuidtooltip'>
- <Tooltip placement='top' title={`UUID: ${datanode &&
datanode.uuid}`} getPopupContainer={(triggerNode) => triggerNode}>
- {datanode && datanode.hostName}
+ <Tooltip placement='top' title={`UUID: ${datanode?.uuid}`}
getPopupContainer={(triggerNode) => triggerNode}>
+ {datanode?.hostName}
Review Comment:
It would be good to have a default fallback value.
```suggestion
{datanode?.hostName ?? 'N/A'}
```
--
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]