Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

check if there is no non-working day set it to an empty array

bsatarnejad193b927aff8d
diff --git a/frontend/src/app/shared/components/show-changes/show-changes.component.ts b/frontend/src/app/shared/components/show-changes/show-changes.component.ts
index 31d3af4a67b..9e030958252 100644
--- a/frontend/src/app/shared/components/show-changes/show-changes.component.ts
+++ b/frontend/src/app/shared/components/show-changes/show-changes.component.ts
@@ -185,7 +185,7 @@ export class OpShowChangesComponent extends UntilDestroyedMixin implements After
.daysService
.requireNonWorkingYears$(lastYear, today)
.pipe(take(1))
- .toPromise();
+ .toPromise()?? [];
}
isNonWorkingDay(date:Date|string):boolean {