mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
fix: decimation plugin data not writeable after clean (#11045)
This commit is contained in:
parent
8dfcf1c443
commit
207fe8f66e
@ -158,7 +158,12 @@ function cleanDecimatedDataset(dataset) {
|
||||
const data = dataset._data;
|
||||
delete dataset._decimated;
|
||||
delete dataset._data;
|
||||
Object.defineProperty(dataset, 'data', {value: data});
|
||||
Object.defineProperty(dataset, 'data', {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
value: data,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user