web/multinode: fix bandwidth graph disappearing on state change

Resolves https://github.com/storj/storj/issues/5847

Change-Id: I6731e7a39cd3ffedaff76b307c141a9e94d9b71f
This commit is contained in:
Clement Sam 2023-05-03 17:19:20 +00:00
parent dab4288899
commit 162af1e836

View File

@ -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();
}
}
</script>