Skip to content

Commit

Permalink
chore: Clean iScale labels instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
CatchABus committed Nov 7, 2021
1 parent 633a52b commit 7994da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.datasetController.js
Expand Up @@ -367,7 +367,7 @@ export default class DatasetController {
const dataset = this.getDataset();
let stackChanged = false;

let labels = me.chart.data.labels;
let labels = meta.iScale ? meta.iScale.getLabels() : null;
if (labels && labels.length && (me._parsing === false || isObject(me._parsing))) {
labels.splice(0);
}
Expand Down

0 comments on commit 7994da3

Please sign in to comment.