Skip to content

Commit

Permalink
fix: decimation plugin data not writeable after clean (#11045)
Browse files Browse the repository at this point in the history
  • Loading branch information
johakr authored Feb 10, 2023
1 parent 8dfcf1c commit 207fe8f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/plugins/plugin.decimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
}

Expand Down

0 comments on commit 207fe8f

Please sign in to comment.