Fix the deletePlan action
In case of failure of plan deletion, a non-existant function
(planDeleted) was called. This was due to a previous refactor
which renamed the function but didn't fix the invocations.
This patch fixes the issue so that the correct function
(deletePlanFailed) is now called.
Closes-bug: #1667691
Change-Id: I12fcfd6f94b90378055cabc3a65ecb3f012f6f91
(cherry picked from commit 02609106c1
)
This commit is contained in:
parent
36b0b587b6
commit
c592740f14
|
@ -325,7 +325,7 @@ export default {
|
|||
dispatch(CurrentPlanActions.detectPlan());
|
||||
}).catch(error => {
|
||||
logger.error('Error deleting plan MistralApiService.runAction', error);
|
||||
dispatch(this.planDeleted(planName));
|
||||
dispatch(this.deletePlanFailed(planName));
|
||||
let errorHandler = new MistralApiErrorHandler(error);
|
||||
errorHandler.errors.forEach((error) => {
|
||||
dispatch(NotificationActions.notify(error));
|
||||
|
|
Loading…
Reference in New Issue