From 71c52373f81cace664047edd19d9d289f45a4dff Mon Sep 17 00:00:00 2001 From: Ricardo Cino Date: Thu, 7 Jul 2022 09:31:50 +0200 Subject: chore: Mobx & React-Router upgrade (#406) Co-authored-by: Vijay A --- src/electron/Settings.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/electron/Settings.ts') diff --git a/src/electron/Settings.ts b/src/electron/Settings.ts index d09ac7fb6..3e9c6ed99 100644 --- a/src/electron/Settings.ts +++ b/src/electron/Settings.ts @@ -1,4 +1,4 @@ -import { observable, toJS } from 'mobx'; +import { makeObservable, observable, toJS } from 'mobx'; import { pathExistsSync, outputJsonSync, readJsonSync } from 'fs-extra'; import { userDataPath } from '../environment-remote'; @@ -12,6 +12,8 @@ export default class Settings { @observable store: object = {}; constructor(type: string, defaultState = {}) { + makeObservable(this); + this.type = type; this.store = defaultState; this.defaultState = defaultState; -- cgit v1.2.3-54-g00ecf