From 162af1e83653b116ac09605d4c5d66c2f4460523 Mon Sep 17 00:00:00 2001 From: Clement Sam Date: Wed, 3 May 2023 17:19:20 +0000 Subject: [PATCH] web/multinode: fix bandwidth graph disappearing on state change Resolves https://github.com/storj/storj/issues/5847 Change-Id: I6731e7a39cd3ffedaff76b307c141a9e94d9b71f --- web/multinode/src/app/components/common/BaseChart.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/multinode/src/app/components/common/BaseChart.vue b/web/multinode/src/app/components/common/BaseChart.vue index 256ee4fa4..f1c0c3378 100644 --- a/web/multinode/src/app/components/common/BaseChart.vue +++ b/web/multinode/src/app/components/common/BaseChart.vue @@ -38,6 +38,12 @@ export default class BaseChart extends Vue { this.chartWidth = this.width; this.chartKey += 1; } + /** + * Rebuilds chart after type switch. + */ + public mounted(): void { + this.rebuildChart(); + } }