Skip to content

Commit

Permalink
Merge pull request #48 from bitovi/initiatives-epics
Browse files Browse the repository at this point in the history
fixing bug with releases not having status
  • Loading branch information
justinbmeyer authored Feb 1, 2024
2 parents 80f469b + d000056 commit 75ccc8a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/dist/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/status-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function getInitiativeStatus(initiative) {
}
};
}
if(statuses.some(s => s.toLowerCase() === "blocked") || initiative.Status.toLowerCase() === "blocked") {
if(statuses.some(s => s.toLowerCase() === "blocked") || ( initiative.Status && initiative.Status.toLowerCase() === "blocked" )) {
return {
status: "blocked",
statusData: {
Expand Down
3 changes: 0 additions & 3 deletions public/timeline-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,10 +811,7 @@ export class TimelineReport extends StacheElement {
var initiatives = this.releasesAndInitiativesWithPriorTiming.initiatives;

if(this.sortByDueDate) {
console.log("sorting by due")
initiatives = initiatives.toSorted( (i1, i2) => i1.dateData.rollup.due - i2.dateData.rollup.due);
} else {
console.log("not sorting")
}

if(this.hideInitiativesInIdea) {
Expand Down

0 comments on commit 75ccc8a

Please sign in to comment.