gantt-task-react-powern 0.6.36 → 0.6.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -600,7 +600,7 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
600
600
|
|
|
601
601
|
var percentComplete = t.percentComplete != null ? t.percentComplete : (_t$progress = t.progress) != null ? _t$progress : 0;
|
|
602
602
|
var plannedDuration = t.plannedDuration != null ? t.plannedDuration : null;
|
|
603
|
-
var remainingDuration = plannedDuration != null ? Math.round(plannedDuration - plannedDuration * (percentComplete / 100)) : null;
|
|
603
|
+
var remainingDuration = plannedDuration != null ? Math.max(Math.round(plannedDuration - plannedDuration * (percentComplete / 100)), 0) : null;
|
|
604
604
|
|
|
605
605
|
var actualDuration = function () {
|
|
606
606
|
if (!t.actualStart || t.actualStart.getTime() === 0) return null;
|