From 207fe8f66ec8be3ae09fe07a2ff4aeaaebfbbe40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Kronm=C3=BCller?= Date: Fri, 10 Feb 2023 06:45:43 +0100 Subject: [PATCH] fix: decimation plugin data not writeable after clean (#11045) --- src/plugins/plugin.decimation.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, + }); } }