Skip to content

Commit

Permalink
fix(tracker-api-migration): fix 'created' value not displaying in the…
Browse files Browse the repository at this point in the history
… job summary

fixes DHIS2-16133 - the property was renamed from 'imported' to 'created'
  • Loading branch information
kabaros committed Mar 11, 2024
1 parent b94b09f commit 35e7df7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/components/JobSummary/SingleSummary/SingleSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ const SingleSummary = ({
<TableBody>
<TableRow>
<TableCell>
{importCount?.imported ?? '0'}
{importCount?.imported ??
importCount?.created ??
'0'}
</TableCell>
<TableCell>{importCount?.deleted}</TableCell>
<TableCell>{importCount?.ignored}</TableCell>
Expand Down
3 changes: 1 addition & 2 deletions src/components/JobSummary/Summary/Summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ const extractStats = (summary) => {
const total = imported + deleted + ignored + updated
return { imported, deleted, ignored, updated, total }
} else if (summary.stats) {
const { imported, deleted, ignored, updated, total } = summary.stats
return { imported, deleted, ignored, updated, total }
return summary.stats
}
}

Expand Down

0 comments on commit 35e7df7

Please sign in to comment.