Render rows in timeline pass regardless of WP association

pull/5639/head
Oliver Günther 7 years ago
parent 568518d6a3
commit 04822ba680
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 10
      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);
});
}
}

Loading…
Cancel
Save