diff options
Diffstat (limited to 'src/stores/RecipesStore.ts')
-rw-r--r-- | src/stores/RecipesStore.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stores/RecipesStore.ts b/src/stores/RecipesStore.ts index 25304e97c..07f1343f8 100644 --- a/src/stores/RecipesStore.ts +++ b/src/stores/RecipesStore.ts | |||
@@ -74,8 +74,8 @@ export default class RecipesStore extends TypedStore { | |||
74 | 74 | ||
75 | // Actions | 75 | // Actions |
76 | async _install({ recipeId }): Promise<Recipe> { | 76 | async _install({ recipeId }): Promise<Recipe> { |
77 | const recipe = await this.installRecipeRequest.execute(recipeId)._promise; | 77 | const recipe = await this.installRecipeRequest.execute(recipeId).promise; |
78 | await this.allRecipesRequest.invalidate({ immediately: true })._promise; | 78 | await this.allRecipesRequest.invalidate({ immediately: true }).promise; |
79 | 79 | ||
80 | return recipe; | 80 | return recipe; |
81 | } | 81 | } |
@@ -128,7 +128,7 @@ export default class RecipesStore extends TypedStore { | |||
128 | const update = updates[i]; | 128 | const update = updates[i]; |
129 | 129 | ||
130 | this.actions.recipe.install({ recipeId: update }); | 130 | this.actions.recipe.install({ recipeId: update }); |
131 | await this.installRecipeRequest._promise; | 131 | await this.installRecipeRequest.promise; |
132 | 132 | ||
133 | this.installRecipeRequest.reset(); | 133 | this.installRecipeRequest.reset(); |
134 | 134 | ||
@@ -158,10 +158,10 @@ export default class RecipesStore extends TypedStore { | |||
158 | debug(`Recipe ${recipeId} is not installed, trying to install it`); | 158 | debug(`Recipe ${recipeId} is not installed, trying to install it`); |
159 | 159 | ||
160 | const recipe = await this.installRecipeRequest.execute(recipeId) | 160 | const recipe = await this.installRecipeRequest.execute(recipeId) |
161 | ._promise; | 161 | .promise; |
162 | if (recipe) { | 162 | if (recipe) { |
163 | await this.allRecipesRequest.invalidate({ immediately: true }) | 163 | await this.allRecipesRequest.invalidate({ immediately: true }) |
164 | ._promise; | 164 | .promise; |
165 | router.push(`/settings/services/add/${recipeId}`); | 165 | router.push(`/settings/services/add/${recipeId}`); |
166 | } else { | 166 | } else { |
167 | router.push('/settings/recipes'); | 167 | router.push('/settings/recipes'); |