chore(core): Don't freeze gist
This commit is contained in:
parent
907c51593a
commit
0f82fa9b95
1 changed files with 1 additions and 2 deletions
|
@ -582,8 +582,7 @@ Pattern.prototype.__applySettings = function (sets) {
|
|||
if (sets.length === 0) sets.push({}) // Required to load default settings
|
||||
this.settings = []
|
||||
for (const i in sets) {
|
||||
// Make the user's input immmuatable to avoid weird bugs
|
||||
sets[i] = Object.freeze(sets[i])
|
||||
// Don't mutate the input itself
|
||||
const set = { ...sets[i] }
|
||||
if (!set.options) set.options = {}
|
||||
if (!set.measurements) set.measurements = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue