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

Use relations state to update Gantt rendering

Oliver Günther338f87dfdb9e
diff --git a/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-relations.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-relations.directive.ts
index 35ba3b06537..086c18ad3a1 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-relations.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-relations.directive.ts
@@ -120,10 +120,11 @@ export class WorkPackageTableTimelineRelations extends UntilDestroyedMixin imple
// for all visible WorkPackage rows...
combineLatest([
this.querySpace.renderedWorkPackages.values$(),
+ this.wpRelations.observeAll(),
this.wpTableTimeline.live$(),
])
.pipe(
- filter(([_, timeline]) => timeline.visible),
+ filter(([_render, _relations, timeline]) => timeline.visible),
this.untilDestroyed(),
map(([rendered, _]) => rendered),
)