|
|
|
@ -133,7 +133,7 @@ export class WorkPackageTimelineCell { |
|
|
|
|
const cell = this.cellElement; |
|
|
|
|
|
|
|
|
|
if (!cell.length) { |
|
|
|
|
return Promise.reject(); |
|
|
|
|
return Promise.reject('uninitialized'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const wasRendered = this.wpElement !== null && body.contains(this.wpElement); |
|
|
|
@ -190,7 +190,8 @@ export class WorkPackageTimelineCell { |
|
|
|
|
const renderer = this.cellRenderer(renderInfo.workPackage); |
|
|
|
|
|
|
|
|
|
// Render initial element if necessary
|
|
|
|
|
this.lazyInit(renderer, renderInfo).then(() => { |
|
|
|
|
this.lazyInit(renderer, renderInfo) |
|
|
|
|
.then(() => { |
|
|
|
|
// Render the upgrade from renderInfo
|
|
|
|
|
const shouldBeDisplayed = renderer.update( |
|
|
|
|
this.wpElement as HTMLDivElement, |
|
|
|
@ -200,7 +201,8 @@ export class WorkPackageTimelineCell { |
|
|
|
|
if (!shouldBeDisplayed) { |
|
|
|
|
this.clear(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.catch(() => null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|