Skip to content

Commit

Permalink
check rr tabs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrianbet committed Sep 16, 2024
1 parent cba533b commit 3372d80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/views/RR/RR.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const RR = () => {
if (!active_tab) {
history.push(`/reporting-rates/${DEFAULT_ACTIVE_TAB}`);
}
}, []);
}, [DEFAULT_ACTIVE_TAB]);

if(!active_tab){
history.push(`/reporting-rates/${rrTab}`);
Expand Down
4 changes: 2 additions & 2 deletions src/views/RR/RRCounty.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ const RRCounty = () => {
consistency_values.sort(function(a, b) {
return b.y - a.y;
});
const consistency_counties = consistency_values.map(obj => capitalize(obj.county));
const consistency_counties = consistency_values?.map(obj => capitalize(obj.county));

const counties = overallReportingRateResult?.map(({ county }) => county);
const emrResultSeries = overallReportingRateResult?.map(({ expected }) => parseInt(expected, 10));

setReportingByCounty({
title: { text: '' },
xAxis: [{ categories: counties?.map(name=> name?name.toUpperCase(): name), title: { text: 'COUNTIES' }, crosshair: true }],
xAxis: [{ categories: counties?.map(name=> name ? name?.toUpperCase() : name), title: { text: 'COUNTIES' }, crosshair: true }],
yAxis: [
{ title: { text: 'NUMBER OF EMR SITES' } }
],
Expand Down
2 changes: 1 addition & 1 deletion src/views/RR/RRPartner.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const RRPartner = () => {

setReportingByPartner({
title: { text: '' },
xAxis: [{ categories: partners.map(name => name.toUpperCase()), title: { text: 'Partners'.toUpperCase() }, crosshair: true }],
xAxis: [{ categories: partners?.map(name => name?.toUpperCase()), title: { text: 'Partners'.toUpperCase() }, crosshair: true }],
yAxis: [
{ title: { text: 'Number of EMR Sites'.toUpperCase() } },
// { title: { text: 'Percentage (%) Reporting Rate'}, opposite: true, min: 0, max: 100 },
Expand Down

0 comments on commit 3372d80

Please sign in to comment.