Pārlūkot izejas kodu

fix: remove Object.seal to options

Object.seal changes the original object and prevents the options to be
observable.
Gerald 4 gadi atpakaļ
vecāks
revīzija
9402cbaf27
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);