diff --git a/client/src/components/hastic_pod/index.ts b/client/src/components/hastic_pod/index.ts index 1c45abd..da3b082 100644 --- a/client/src/components/hastic_pod/index.ts +++ b/client/src/components/hastic_pod/index.ts @@ -79,7 +79,7 @@ export class HasticPod extends LinePod { renderMetrics() { super.renderMetrics(); - console.log('render my metrics'); + this.renderSegments(); } public fetchData(): void { @@ -197,6 +197,10 @@ export class HasticPod extends LinePod { protected renderSegments(): void { const segments = this._segmentSet.getSegments(); + // TODO: this is a bad hack, don't know why + if(this.metricContainer == null) { + return; + } this.segmentsContainer = this.metricContainer .append('g') .attr('class', 'segmentsContainer')