diff options
Diffstat (limited to 'src/stores/RecipesStore.ts')
-rw-r--r-- | src/stores/RecipesStore.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/RecipesStore.ts b/src/stores/RecipesStore.ts index 364d56dd2..25304e97c 100644 --- a/src/stores/RecipesStore.ts +++ b/src/stores/RecipesStore.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { action, computed, observable } from 'mobx'; | 1 | import { action, computed, makeObservable, observable } from 'mobx'; |
2 | import { readJSONSync } from 'fs-extra'; | 2 | import { readJSONSync } from 'fs-extra'; |
3 | import semver from 'semver'; | 3 | import semver from 'semver'; |
4 | 4 | ||
@@ -24,6 +24,8 @@ export default class RecipesStore extends TypedStore { | |||
24 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { | 24 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { |
25 | super(stores, api, actions); | 25 | super(stores, api, actions); |
26 | 26 | ||
27 | makeObservable(this); | ||
28 | |||
27 | // Register action handlers | 29 | // Register action handlers |
28 | this.actions.recipe.install.listen(this._install.bind(this)); | 30 | this.actions.recipe.install.listen(this._install.bind(this)); |
29 | this.actions.recipe.update.listen(this._update.bind(this)); | 31 | this.actions.recipe.update.listen(this._update.bind(this)); |