forked from p34709852/monkey
commit
576af97a82
|
@ -404,15 +404,17 @@ class ReportPageComponent extends AuthComponent {
|
||||||
generateReportRecommendationsSection() {
|
generateReportRecommendationsSection() {
|
||||||
return (
|
return (
|
||||||
<div id="recommendations">
|
<div id="recommendations">
|
||||||
<h3>
|
{/* Checks if there are any domain issues. If there are more then one: render the title. Otherwise,
|
||||||
Domain related recommendations
|
* don't render it (since the issues themselves will be empty. */}
|
||||||
</h3>
|
{Object.keys(this.state.report.recommendations.domain_issues).length !== 0 ?
|
||||||
|
<h3>Domain related recommendations</h3> : null }
|
||||||
<div>
|
<div>
|
||||||
{this.generateIssues(this.state.report.recommendations.domain_issues)}
|
{this.generateIssues(this.state.report.recommendations.domain_issues)}
|
||||||
</div>
|
</div>
|
||||||
<h3>
|
{/* Checks if there are any issues. If there are more then one: render the title. Otherwise,
|
||||||
Machine related Recommendations
|
* don't render it (since the issues themselves will be empty. */}
|
||||||
</h3>
|
{Object.keys(this.state.report.recommendations.issues).length !== 0 ?
|
||||||
|
<h3>Machine related recommendations</h3> : null }
|
||||||
<div>
|
<div>
|
||||||
{this.generateIssues(this.state.report.recommendations.issues)}
|
{this.generateIssues(this.state.report.recommendations.issues)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue