mobx-6: use toJS()-wrapper since monkey-patching require(mobx).toJS doesn't work

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2021-05-06 18:55:14 +03:00
1 parent 4a9178e8ea
commit 5d09d7a126
21 files changed
+95 -79

No files matched your search

+3 -3
View File
@@ -50,9 +50,9 @@ export class ExamplePreferencesStore extends Store.ExtensionStore<ExamplePrefere
}
toJSON(): ExamplePreferencesModel {
return toJS({
enabled: this.enabled
});
return {
enabled: toJS(this.enabled)
};
}
}
```