Skip to content

Commit

Permalink
Another case where const needs to be replaced with let.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Oct 28, 2021
1 parent 9f94b1c commit 1b9732b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/developers/updates.md
Expand Up @@ -66,8 +66,8 @@ Variables referencing any one from `chart.scales` would be lost after updating s

```javascript
function updateScales(chart) {
const xScale = chart.scales.x;
const yScale = chart.scales.y;
let xScale = chart.scales.x;
let yScale = chart.scales.y;
chart.options.scales = {
newId: {
display: true
Expand Down

0 comments on commit 1b9732b

Please sign in to comment.