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.modern.js
CHANGED
|
@@ -599,7 +599,7 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
599
599
|
|
|
600
600
|
var percentComplete = t.percentComplete != null ? t.percentComplete : (_t$progress = t.progress) != null ? _t$progress : 0;
|
|
601
601
|
var plannedDuration = t.plannedDuration != null ? t.plannedDuration : null;
|
|
602
|
-
var remainingDuration = plannedDuration != null ? Math.round(plannedDuration - plannedDuration * (percentComplete / 100)) : null;
|
|
602
|
+
var remainingDuration = plannedDuration != null ? Math.max(Math.round(plannedDuration - plannedDuration * (percentComplete / 100)), 0) : null;
|
|
603
603
|
|
|
604
604
|
var actualDuration = function () {
|
|
605
605
|
if (!t.actualStart || t.actualStart.getTime() === 0) return null;
|