devabhishekpal commented on code in PR #7064:
URL: https://github.com/apache/ozone/pull/7064#discussion_r1732250776
##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/om/om.tsx:
##########
@@ -614,7 +614,7 @@ export class Om extends React.Component<Record<string,
object>, IOmdbInsightsSta
cancelDeletePendingSignal = controller;
request.then(deletePendingKeysResponse => {
- const deletePendingKeys = deletePendingKeysResponse &&
deletePendingKeysResponse.data && deletePendingKeysResponse.data.deletedKeyInfo;
+ const deletePendingKeys =
deletePendingKeysResponse?.data?.deletedKeyInfo;
Review Comment:
Similar over here, please add a fallback/default value
```suggestion
const deletePendingKeys =
deletePendingKeysResponse?.data?.deletedKeyInfo ?? [];
```
--
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]