Skip to content

Commit

Permalink
Merge pull request #605 from HDRUK/merge_test_to_prod_2.0.14
Browse files Browse the repository at this point in the history
Merge test to prod 2.0.14
  • Loading branch information
spco authored Jan 4, 2024
2 parents 4f134fd + d95d8c8 commit 3627970
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions react-client-app/src/components/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ const Home = () => {
// generate count stats of filtered data by adding up the count stats of the scan reports in the filtered list
generatedCountStats =
{
scanreport_count: filteredReports.length,
scanreporttable_count: filteredReports.map(report => report.scanreporttable_count).reduce((a, b) => { return a + b; }, 0),
scanreportfield_count: filteredReports.map(report => report.scanreportfield_count).reduce((a, b) => { return a + b; }, 0),
scanreportvalue_count: filteredReports.map(report => report.scanreportvalue_count).reduce((a, b) => { return a + b; }, 0),
scanreportmappingrule_count: filteredReports.map(report => report.scanreportmappingrule_count).reduce((a, b) => { return a + b; }, 0),
scanreport_count: "Disabled", //filteredReports.length,
scanreporttable_count: "Disabled", //filteredReports.map(report => report.scanreporttable_count).reduce((a, b) => { return a + b; }, 0),
scanreportfield_count: "Disabled", //filteredReports.map(report => report.scanreportfield_count).reduce((a, b) => { return a + b; }, 0),
scanreportvalue_count: "Disabled", //filteredReports.map(report => report.scanreportvalue_count).reduce((a, b) => { return a + b; }, 0),
scanreportmappingrule_count: "Disabled", //filteredReports.map(report => report.scanreportmappingrule_count).reduce((a, b) => { return a + b; }, 0),
}
// set the state of the data to be used in the donuts and tables
setDonutData(filteredReports)
setMappingDonutData(filteredReports)
// setMappingDonutData(filteredReports)
setStatuses(filteredStatuses)
setCountStats(generatedCountStats)
setTimeline(timeline)
Expand Down Expand Up @@ -370,7 +370,7 @@ const Home = () => {
</Container>
}

{mappingrulesDonutData &&
{/* {mappingrulesDonutData &&
<Container w={["100%", "100%", "100%", "50%"]}>
<Plot
data={mappingrulesDonutData}
Expand All @@ -379,7 +379,7 @@ const Home = () => {
style={{ width: "100%", height: "auto" }}
/>
</Container>
}
} */}
</Stack>
</VStack>

Expand Down

0 comments on commit 3627970

Please sign in to comment.