diff options
Diffstat (limited to 'src/features/todos')
-rw-r--r-- | src/features/todos/store.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/features/todos/store.js b/src/features/todos/store.js index 1a3d6c1e7..0f195f10d 100644 --- a/src/features/todos/store.js +++ b/src/features/todos/store.js | |||
@@ -1,4 +1,4 @@ | |||
1 | import { computed, action, observable } from 'mobx'; | 1 | import { computed, action, observable, makeObservable } from 'mobx'; |
2 | import localStorage from 'mobx-localstorage'; | 2 | import localStorage from 'mobx-localstorage'; |
3 | 3 | ||
4 | import { ThemeType } from '../../themes'; | 4 | import { ThemeType } from '../../themes'; |
@@ -33,6 +33,12 @@ export default class TodoStore extends FeatureStore { | |||
33 | 33 | ||
34 | isInitialized = false; | 34 | isInitialized = false; |
35 | 35 | ||
36 | constructor() { | ||
37 | super(); | ||
38 | |||
39 | makeObservable(this); | ||
40 | } | ||
41 | |||
36 | @computed get width() { | 42 | @computed get width() { |
37 | const width = this.settings.width || DEFAULT_TODOS_WIDTH; | 43 | const width = this.settings.width || DEFAULT_TODOS_WIDTH; |
38 | 44 | ||