Skip to content

Commit

Permalink
Fix regression for progress change feedback
Browse files Browse the repository at this point in the history
Progress is now changed in real time.

Signed-off-by: Laurent Fasani <[email protected]>
  • Loading branch information
lfasani committed Jun 21, 2024
1 parent 6905444 commit 13e537e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/gantt/use-get-task-current-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,17 @@ export const useGetTaskCurrentState = ({
};
}
}

const progressIsChanged =
changeInProgress &&
changeInProgress.originalTask === currentOriginalTask &&
changeInProgress.changedTask.progress != currentOriginalTask.progress;
if (progressIsChanged) {
return {
...currentOriginalTask,
progress: changeInProgress.changedTask.progress,
};
}
return currentOriginalTask;
},
[
Expand Down

0 comments on commit 13e537e

Please sign in to comment.