web/storagenode: fix bandwidth graph (#5020)

fixes #4951

Co-authored-by: Clement Sam <clementsam75@gmail.com>
This commit is contained in:
CatInAHatIsBack 2022-12-07 20:31:13 +07:00 committed by GitHub
parent c6e48fb71d
commit 7d200d3962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,13 @@ export default class BaseChart extends Vue {
chartContainer: HTMLElement;
};
/**
* Rebuilds chart after type switch.
*/
public mounted(): void {
this.rebuildChart();
}
@Watch('width')
@Watch('isDarkMode')
public rebuildChart(): void {