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:
Ana Krivokapic 2017-02-24 12:49:04 +01:00
parent 36b0b587b6
commit c592740f14
1 changed files with 1 additions and 1 deletions

View File

@ -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));