From 04822ba68021dcb9fe8aa8115604120d81e25226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 12 Jun 2017 13:20:08 +0200 Subject: [PATCH] Render rows in timeline pass regardless of WP association --- .../builders/timeline/timeline-render-pass.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/app/components/wp-fast-table/builders/timeline/timeline-render-pass.ts b/frontend/app/components/wp-fast-table/builders/timeline/timeline-render-pass.ts index c634c1e2fc..f22e406dac 100644 --- a/frontend/app/components/wp-fast-table/builders/timeline/timeline-render-pass.ts +++ b/frontend/app/components/wp-fast-table/builders/timeline/timeline-render-pass.ts @@ -19,12 +19,12 @@ export class TimelineRenderPass implements SecondaryRenderPass { // Render into timeline fragment this.tablePass.renderedOrder.forEach((row:RenderedRow) => { - if (row.isWorkPackage && row.belongsTo) { - const secondary = this.timelineBuilder.build(row.belongsTo.id); - this.tablePass.augmentSecondaryElement(secondary, row); + const wpId = row.isWorkPackage ? row.belongsTo!.id : null; - this.timelineBody.appendChild(secondary); - } + const secondary = this.timelineBuilder.build(wpId); + this.tablePass.augmentSecondaryElement(secondary, row); + + this.timelineBody.appendChild(secondary); }); } }