Skip to content

Commit

Permalink
fix(ui): do not use toolbar in OnInit (#4396)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored and bnjjj committed Jun 24, 2019
1 parent 6e2a4c6 commit 3c5e22e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui/src/app/views/home/heatmap/home.heatmap.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { AfterViewInit, Component, ViewChild } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { AppService } from 'app/app.service';
import { AuthentificationStore } from 'app/service/services.module';
Expand All @@ -19,7 +19,7 @@ import { ToolbarComponent } from './toolbar/toolbar.component';
styleUrls: ['./home.heatmap.scss']
})
@AutoUnsubscribe()
export class HomeHeatmapComponent implements OnInit {
export class HomeHeatmapComponent implements AfterViewInit {

loading = true;
events: Array<Event>;
Expand Down Expand Up @@ -58,7 +58,7 @@ export class HomeHeatmapComponent implements OnInit {
this.filter = new TimelineFilter();
}

ngOnInit(): void {
ngAfterViewInit() {
if (!this._authStore.isConnected) {
return;
}
Expand Down Expand Up @@ -137,6 +137,7 @@ export class HomeHeatmapComponent implements OnInit {
});
}
});

}

/**
Expand Down

0 comments on commit 3c5e22e

Please sign in to comment.