nhan0504 / CS326

0 stars 1 forks source link

Fix uncaught issue with rendering chart #21

Closed nhan0504 closed 3 weeks ago

nhan0504 commented 3 weeks ago

What

In the console there is an uncaught error

chart.js:19  Uncaught Error: Canvas is already in use. Chart with ID '0' must be destroyed before the canvas with ID 'mostWornChart' can be reused.
    at new An (chart.js:19:89869)
    at StatsViewComponent.renderChart (StatsViewComponent.js:61:12)
    at StatsViewComponent.js:300:12