From d3d126fca2fb5c0779a26f60f6c44e4814437ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Kronm=C3=BCller?= Date: Tue, 10 Jan 2023 09:41:19 +0100 Subject: [PATCH 1/3] fix: decimation plugin data not writeable after clean --- src/plugins/plugin.decimation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plugin.decimation.js b/src/plugins/plugin.decimation.js index 112a5e32b40..c0227560bcc 100644 --- a/src/plugins/plugin.decimation.js +++ b/src/plugins/plugin.decimation.js @@ -158,7 +158,7 @@ function cleanDecimatedDataset(dataset) { const data = dataset._data; delete dataset._decimated; delete dataset._data; - Object.defineProperty(dataset, 'data', {value: data}); + dataset.data = data; } } From f195c18378bfe26a3a98f5cc30a6d5f4426d3dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Kronm=C3=BCller?= Date: Tue, 10 Jan 2023 22:21:10 +0100 Subject: [PATCH 2/3] fix: decimation plugin data not writeable after clean --- 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 c0227560bcc..53a149b2381 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; - dataset.data = data; + Object.defineProperty(dataset, "data", { + configurable: true, + enumerable: true, + writable: true, + value: data, + }); } } From 650d6ba0ffa0dc068b12d386427caf154c2ff123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Kronm=C3=BCller?= Date: Tue, 10 Jan 2023 23:31:56 +0100 Subject: [PATCH 3/3] fix linting --- src/plugins/plugin.decimation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plugin.decimation.js b/src/plugins/plugin.decimation.js index 53a149b2381..2c2a19a375a 100644 --- a/src/plugins/plugin.decimation.js +++ b/src/plugins/plugin.decimation.js @@ -158,7 +158,7 @@ function cleanDecimatedDataset(dataset) { const data = dataset._data; delete dataset._decimated; delete dataset._data; - Object.defineProperty(dataset, "data", { + Object.defineProperty(dataset, 'data', { configurable: true, enumerable: true, writable: true,