koccs commented on code in PR #7174: URL: https://github.com/apache/nifi/pull/7174#discussion_r1170162373
########## nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-status-history.js: ########## @@ -356,8 +356,8 @@ // add status history details var detailsContainer = buildDetailsContainer('Status History'); - d3.map(statusHistory.details).each(function (value, label) { - addDetailItem(detailsContainer, label, value); + Object.keys(statusHistory.details).forEach(function(key) { + addDetailItem(detailsContainer, key, statusHistory.details[key]); Review Comment: [`Object.entries()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries) would provide a `[key, value]` pair, so you won't need the accessor for the value. -- 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-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org