Skip to content

Commit 011df2d

Browse files
fix issue with predecessors
1 parent 26476d4 commit 011df2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ChallengeService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ async function populatePhases (phases, startDate, timelineTemplateId) {
788788
done[i] = true
789789
doing = true
790790
} else {
791-
const preIndex = _.findIndex(phases, (p) => p.id === phase.predecessor)
791+
const preIndex = _.findIndex(phases, (p) => p.phaseId === phase.predecessor)
792792
let canProcess = true
793793
if (preIndex < 0) {
794794
canProcess = false

0 commit comments

Comments
 (0)