This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit ed6bbdf2c2666c386207dd1ef0a9508abda7ac3d
Author: 青湛 <[email protected]>
AuthorDate: Fri Mar 29 19:17:45 2024 +1300

    fix: progress revert in onboard subtask progress (#7251)
---
 config-ui/src/routes/onboard/step-4.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config-ui/src/routes/onboard/step-4.tsx 
b/config-ui/src/routes/onboard/step-4.tsx
index d7c88fc3b..1541f8256 100644
--- a/config-ui/src/routes/onboard/step-4.tsx
+++ b/config-ui/src/routes/onboard/step-4.tsx
@@ -137,7 +137,7 @@ export const Step4 = () => {
       plugin: collectorTask.plugin,
       name: `Collect non-Git entitles in ${collectorTask.options?.fullName ?? 
'Unknown'}`,
       percent: collectorSubtasks.length
-        ? Math.floor(((collectorSubtasks.length - 
collectorSubtasksFinished.length) / collectorSubtasks.length) * 100)
+        ? Math.floor((collectorSubtasksFinished.length / 
collectorSubtasks.length) * 100)
         : 0,
       tasks: collectorSubtasks.map((it) => ({
         step: it.sequence,
@@ -154,7 +154,7 @@ export const Step4 = () => {
       plugin: extractorTask.plugin,
       name: `Collect Git entitles in ${extractorTask.options?.fullName ?? 
'Unknown'}`,
       percent: extractorSubtasks.length
-        ? Math.floor(((extractorSubtasks.length - 
extractorSubtasksFinished.length) / extractorSubtasks.length) * 100)
+        ? Math.floor((extractorSubtasksFinished.length / 
extractorSubtasks.length) * 100)
         : 0,
       tasks: (extractorTask.subtaskDetails ?? [])
         .filter((it) => it.isCollector)

Reply via email to