Explorar o código

fix: remove Object.seal to options

Object.seal changes the original object and prevents the options to be
observable.
Gerald %!s(int64=5) %!d(string=hai) anos
pai
achega
9402cbaf27
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/ui/setting-text.vue

+ 1 - 1
src/common/ui/setting-text.vue

@@ -77,7 +77,7 @@ export default {
       // XXX compatible with old data format
       : (value => (Array.isArray(value) ? value.join('\n') : value || ''));
     this.revoke = hookSetting(this.name, val => {
-      this.savedValue = Object.seal(val);
+      this.savedValue = val;
       this.value = handle(val);
     });
     this.defaultValue = objectGet(defaults, this.name);