Skip to content

Commit

Permalink
UIDATIMP-1691: Fixed progress bar goes above 100% when job is stuck i…
Browse files Browse the repository at this point in the history
…n running column
  • Loading branch information
mariia-aloshyna committed Jan 6, 2025
1 parent 3c54135 commit 17dc9b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

### Bugs fixed:
* Trigger file selection window to open after click `Choose other files to upload` button. (UIDATIMP-1683)
* Fixed progress bar goes above 100% when job is stuck in running column. (UIDATIMP-1691)

## [8.0.4](https://github.com/folio-org/ui-data-import/tree/v8.0.4) (2024-12-06)

Expand Down
3 changes: 2 additions & 1 deletion src/components/Jobs/components/Job/Job.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ const JobComponent = ({
const jobMeta = jobMetaTypes[uiStatus](job);
const dateLabelId = `ui-data-import.${jobMeta.dateLabel}Running`;
const isDeletionInProgress = showCancelJobModal || deletionInProgress;
const currentProgress = current <= 100 ? current : 100;

return (
<li
Expand Down Expand Up @@ -343,7 +344,7 @@ const JobComponent = ({
tagName="div"
/>
<Progress
current={current}
current={currentProgress}
total={total}
/>
</>
Expand Down

0 comments on commit 17dc9b6

Please sign in to comment.