mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
1 parent
4a9178e8ea
commit
5d09d7a126
21 files changed
+95
-79
No files matched your search
@@ -50,9 +50,9 @@ export class ExamplePreferencesStore extends Store.ExtensionStore<ExamplePrefere
|
||||
}
|
||||
|
||||
toJSON(): ExamplePreferencesModel {
|
||||
return toJS({
|
||||
enabled: this.enabled
|
||||
});
|
||||
return {
|
||||
enabled: toJS(this.enabled)
|
||||
};
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user