Fix cloning settings sets with schemes
This commit is contained in:
parent
eaeae7ad98
commit
66eee86eb3
|
@ -15,12 +15,6 @@ export default class SettingsScheme {
|
||||||
constructor(args) {
|
constructor(args) {
|
||||||
this.args = args.args || args;
|
this.args = args.args || args;
|
||||||
|
|
||||||
this.args.settings = this.settings.map(({ category, settings }) => ({
|
|
||||||
category, settings: settings.map(({ id, value }) => ({
|
|
||||||
id, value
|
|
||||||
}))
|
|
||||||
}));
|
|
||||||
|
|
||||||
Object.freeze(this);
|
Object.freeze(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue