diff options
Diffstat (limited to 'src/webview/recipe.js')
-rw-r--r-- | src/webview/recipe.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 3c8a5326f..102d93642 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -2,7 +2,7 @@ | |||
2 | /* eslint-disable import/first */ | 2 | /* eslint-disable import/first */ |
3 | import { contextBridge, ipcRenderer } from 'electron'; | 3 | import { contextBridge, ipcRenderer } from 'electron'; |
4 | import { join } from 'path'; | 4 | import { join } from 'path'; |
5 | import { autorun, computed, observable } from 'mobx'; | 5 | import { autorun, computed, makeObservable, observable } from 'mobx'; |
6 | import { pathExistsSync, readFileSync } from 'fs-extra'; | 6 | import { pathExistsSync, readFileSync } from 'fs-extra'; |
7 | import { debounce } from 'lodash'; | 7 | import { debounce } from 'lodash'; |
8 | 8 | ||
@@ -154,6 +154,8 @@ class RecipeController { | |||
154 | hasUpdatedBeforeRecipeLoaded = false; | 154 | hasUpdatedBeforeRecipeLoaded = false; |
155 | 155 | ||
156 | constructor() { | 156 | constructor() { |
157 | makeObservable(this); | ||
158 | |||
157 | this.initialize(); | 159 | this.initialize(); |
158 | } | 160 | } |
159 | 161 | ||