Skip to content

Commit 3e84584

Browse files
authored
Merge pull request #322 from agarciacalvo/master
Fix for #320
2 parents e514458 + 04ca44f commit 3e84584

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/task.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,12 @@ export const processRows = function (pList, pID, pRow, pLevel, pOpen, pUseSort,
630630
if (pList[pRow].getGroupMinPlanEnd() != null && pList[pRow].getGroupMinPlanEnd() > vMaxPlanDate) {
631631
vMaxPlanDate = pList[pRow].getGroupMinPlanEnd();
632632
}
633-
pList[pRow].setPlanStart(vMinPlanDate);
634-
pList[pRow].setPlanEnd(vMaxPlanDate);
633+
if (vMinPlanDate) {
634+
pList[pRow].setPlanStart(vMinPlanDate);
635+
}
636+
if (vMaxPlanDate) {
637+
pList[pRow].setPlanEnd(vMaxPlanDate);
638+
}
635639
pList[pRow].setNumKid(vNumKid);
636640
pList[pRow].setWeight(vWeight);
637641
pList[pRow].setCompVal(Math.ceil(vCompSum / vWeight));

0 commit comments

Comments
 (0)