diff options
Diffstat (limited to 'src/stores/RecipePreviewsStore.ts')
-rw-r--r-- | src/stores/RecipePreviewsStore.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stores/RecipePreviewsStore.ts b/src/stores/RecipePreviewsStore.ts index b1d50c8b8..1c95e6b54 100644 --- a/src/stores/RecipePreviewsStore.ts +++ b/src/stores/RecipePreviewsStore.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import { action, computed, observable } from 'mobx'; | 1 | import { action, computed, makeObservable, observable } from 'mobx'; |
2 | |||
2 | import { Actions } from '../actions/lib/actions'; | 3 | import { Actions } from '../actions/lib/actions'; |
3 | import { ApiInterface } from '../api'; | 4 | import { ApiInterface } from '../api'; |
4 | import Recipe from '../models/Recipe'; | 5 | import Recipe from '../models/Recipe'; |
@@ -28,6 +29,8 @@ export default class RecipePreviewsStore extends TypedStore { | |||
28 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { | 29 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { |
29 | super(stores, api, actions); | 30 | super(stores, api, actions); |
30 | 31 | ||
32 | makeObservable(this); | ||
33 | |||
31 | // Register action handlers | 34 | // Register action handlers |
32 | this.actions.recipePreview.search.listen(this._search.bind(this)); | 35 | this.actions.recipePreview.search.listen(this._search.bind(this)); |
33 | } | 36 | } |