diff --git a/src/plugins/plugin.decimation.js b/src/plugins/plugin.decimation.js index 112a5e32b40..2c2a19a375a 100644 --- a/src/plugins/plugin.decimation.js +++ b/src/plugins/plugin.decimation.js @@ -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, + }); } }