mirror of
https://github.com/discourse/discourse.git
synced 2025-03-07 11:25:29 +08:00

The chart component was not rerendering if the chart config passed to it was changed, this commit fixes the issue by getting the config from `this.args` before trying to access it inside an async call, so if the args change Ember correctly rerenders. Also adds tests for this and general chart rendering. --------- Co-authored-by: Martin Brennan <martin@discourse.org>