We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6905444 commit 13e537eCopy full SHA for 13e537e
1 file changed
src/components/gantt/use-get-task-current-state.ts
@@ -171,6 +171,17 @@ export const useGetTaskCurrentState = ({
171
};
172
}
173
174
+
175
+ const progressIsChanged =
176
+ changeInProgress &&
177
+ changeInProgress.originalTask === currentOriginalTask &&
178
+ changeInProgress.changedTask.progress != currentOriginalTask.progress;
179
+ if (progressIsChanged) {
180
+ return {
181
+ ...currentOriginalTask,
182
+ progress: changeInProgress.changedTask.progress,
183
+ };
184
+ }
185
return currentOriginalTask;
186
},
187
[
0 commit comments