diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/index.ts (renamed from src/stores/index.js) | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stores/index.js b/src/stores/index.ts index b6e481e8a..e980f2c5b 100644 --- a/src/stores/index.js +++ b/src/stores/index.ts | |||
@@ -34,9 +34,12 @@ export default (api, actions, router) => { | |||
34 | communityRecipes: communityRecipesStore, | 34 | communityRecipes: communityRecipesStore, |
35 | todos: todosStore, | 35 | todos: todosStore, |
36 | }); | 36 | }); |
37 | |||
37 | // Initialize all stores | 38 | // Initialize all stores |
38 | Object.keys(stores).forEach((name) => { | 39 | Object.keys(stores).forEach((name) => { |
39 | if (stores[name] && stores[name].initialize) stores[name].initialize(); | 40 | if (stores[name] && stores[name].initialize) { |
41 | stores[name].initialize(); | ||
42 | } | ||
40 | }); | 43 | }); |
41 | return stores; | 44 | return stores; |
42 | }; | 45 | }; |