From 1541f3b8a64dd6588a6816545770e526f087cf0b Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Sun, 31 Oct 2021 21:24:37 +0300 Subject: [PATCH] hiddend lables on resize #21 --- client/src/components/hastic_pod/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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')