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); }); } }