Skip to content

Commit

Permalink
fixed report refresh issue (#109)
Browse files Browse the repository at this point in the history
* (chores)refresh reports

* (chores)reports refresh

* (chores)fixed refresh issue
  • Loading branch information
Collins-Rop authored Jul 2, 2024
1 parent 1d3d8c4 commit 42886ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ const RenderMOH405: React.FC<{ reportData: any }> = ({ reportData }) => (
))
) : (
<TableRow>
<TableCell colSpan={42}>Data Not Available in this Location</TableCell>
<TableCell colSpan={45}>No data available</TableCell>
</TableRow>
)}
</TableBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const ReportSummary: React.FC<any> = ({ rows = [] }) => {
if (rows && Array.isArray(rows)) {
const rowsWithButtons = rows.map((row) => {
const reportMappingEntry = reportMapping.find((entry) => entry.report_uuid === row.uuid);
setReportCurrentId(Number(row.id));
return {
...row,
id: row.log_id,
Expand Down Expand Up @@ -97,7 +98,6 @@ const ReportSummary: React.FC<any> = ({ rows = [] }) => {
<button
className={styles.view_button}
onClick={() => {
setReportCurrentId(Number(row.id));
handleViewClick(locationUuid, reportMappingEntry.report_uuid, Number(row.id));
}}>
View
Expand Down

0 comments on commit 42886ef

Please sign in to comment.