diff options
Diffstat (limited to 'src/stores/RequestStore.ts')
-rw-r--r-- | src/stores/RequestStore.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/RequestStore.ts b/src/stores/RequestStore.ts index e5df1292d..a964c5d12 100644 --- a/src/stores/RequestStore.ts +++ b/src/stores/RequestStore.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } from 'electron'; |
2 | import { action, computed, observable } from 'mobx'; | 2 | import { action, computed, makeObservable, observable } from 'mobx'; |
3 | import ms from 'ms'; | 3 | import ms from 'ms'; |
4 | 4 | ||
5 | import { Actions } from '../actions/lib/actions'; | 5 | import { Actions } from '../actions/lib/actions'; |
@@ -28,6 +28,8 @@ export default class RequestStore extends TypedStore { | |||
28 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { | 28 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { |
29 | super(stores, api, actions); | 29 | super(stores, api, actions); |
30 | 30 | ||
31 | makeObservable(this); | ||
32 | |||
31 | this.actions.requests.retryRequiredRequests.listen( | 33 | this.actions.requests.retryRequiredRequests.listen( |
32 | this._retryRequiredRequests.bind(this), | 34 | this._retryRequiredRequests.bind(this), |
33 | ); | 35 | ); |