Skip to content

Commit

Permalink
Hotfixes for Release (#89)
Browse files Browse the repository at this point in the history
* Patient Data organization
* Title change: age distribution

Signed-off-by: Courtney Gosselin <[email protected]>

---------

Signed-off-by: Courtney Gosselin <[email protected]>
  • Loading branch information
CourtneyGosselin authored Jul 21, 2023
1 parent f06f3ce commit 728b10b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/store/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const DataVisualizationChartInfo = {
yAxis: 'Number of Patients'
},
diagnosis_age_count: {
title: ' Age Range Distribution',
title: ' Age at Diagnosis Distribution',
xAxis: 'Age Range',
yAxis: 'Number of Patients'
},
Expand Down
8 changes: 4 additions & 4 deletions src/views/clinicalGenomic/widgets/patientCountSingle.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function PatientCountSingle(props) {
<Divider flexItem orientation="vertical" className={classes.divider} />
<Grid item xs={2}>
<Typography align="center" className={classes.patientEntry}>
{numCohorts}
{patientsInSearch}
</Typography>
</Grid>
<Divider flexItem orientation="vertical" className={classes.divider} />
Expand All @@ -69,7 +69,7 @@ function PatientCountSingle(props) {
<Divider flexItem orientation="vertical" className={classes.divider} />
<Grid item xs={2}>
<Typography align="center" className={classes.patientEntry}>
{patientsInSearch}
{numCohorts}
</Typography>
</Grid>
<Divider flexItem orientation="vertical" className={classes.divider} />
Expand Down Expand Up @@ -106,13 +106,13 @@ function PatientCountSingle(props) {
<Divider flexItem orientation="vertical" className={classes.divider} />
<Grid item xs={2}>
<Typography align="center" className={classes.patientEntry}>
{counts.totals[cohort]}
{counts.counts?.[cohort] || 0}
</Typography>
</Grid>
<Divider flexItem orientation="vertical" className={classes.divider} />
<Grid item xs={2}>
<Typography align="center" className={classes.patientEntry}>
{counts.counts?.[cohort] || 0}
{counts.totals[cohort]}
</Typography>
</Grid>
<Divider flexItem orientation="vertical" className={classes.divider} />
Expand Down
4 changes: 2 additions & 2 deletions src/views/clinicalGenomic/widgets/patientCounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function PatientCounts(props) {
</Grid>
<Grid item xs={2}>
<Typography variant="h5" align="center" className={classes.header}>
Total Cohorts
Patients In Search
</Typography>
</Grid>
<Grid item xs={2}>
Expand All @@ -86,7 +86,7 @@ function PatientCounts(props) {
</Grid>
<Grid item xs={2}>
<Typography variant="h5" align="center" className={classes.header}>
Patients In Search
Total Cohorts
</Typography>
</Grid>
<Grid item xs={1} ml="auto" className={classes.button}>
Expand Down

0 comments on commit 728b10b

Please sign in to comment.