Clear view
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit

This commit is contained in:
Willem Dantuma 2021-03-20 11:25:23 +01:00
parent e2255164fc
commit 36d9c98e47

View File

@ -44,6 +44,7 @@ export class HasPackageDirective implements OnDestroy{
updateView() {
this.viewContainerRef$.clear();
const today = new Date(new Date(Date.now()).toUTCString()).setHours(0, 0, 0, 0);
if (this.packages$[this.packageIdentifier$] &&
this.packages$[this.packageIdentifier$].enabled &&
@ -52,8 +53,6 @@ export class HasPackageDirective implements OnDestroy{
this.viewContainerRef$.createEmbeddedView(this.thenTemplate$);
} else if (this.elseTemplate$) {
this.viewContainerRef$.createEmbeddedView(this.elseTemplate$);
} else {
this.viewContainerRef$.clear();
}
}