diff --git a/packages/frontend/src/preferences/store.ts b/packages/frontend/src/preferences/store.ts index e10afcc308..e061021be3 100644 --- a/packages/frontend/src/preferences/store.ts +++ b/packages/frontend/src/preferences/store.ts @@ -45,12 +45,14 @@ export class Store> extends EventEmitter(key: K, value: Data[K]) { - this.r[key].value = this.s[key] = value; - this.emit('updated', { key, value }); + const v = JSON.parse(JSON.stringify(value)); // deep copy 兼 vueのプロキシ解除 + this.r[key].value = this.s[key] = v; + this.emit('updated', { key, value: v }); } public rewrite(key: K, value: Data[K]) { - this.r[key].value = this.s[key] = value; + const v = JSON.parse(JSON.stringify(value)); // deep copy 兼 vueのプロキシ解除 + this.r[key].value = this.s[key] = v; } /**