devabhishekpal commented on code in PR #7064:
URL: https://github.com/apache/ozone/pull/7064#discussion_r1732249296
##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/om/om.tsx:
##########
@@ -567,7 +567,7 @@ export class Om extends React.Component<Record<string,
object>, IOmdbInsightsSta
const { request, controller } = AxiosGetHelper(openKeysEndpoint,
cancelOpenKeysSignal)
cancelOpenKeysSignal = controller
request.then(openKeysResponse => {
- const openKeys = openKeysResponse && openKeysResponse.data;
+ const openKeys = openKeysResponse?.data;
Review Comment:
This will short-circuit to undefined in case data is not defined.
Please add a fallback value to this
```suggestion
const openKeys = openKeysResponse?.data ?? {"fso": []};
```
--
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]