summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/alert_details/components/sidebar/sidebar_todo.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/vue_shared/alert_details/components/sidebar/sidebar_todo.vue')
-rw-r--r--app/assets/javascripts/vue_shared/alert_details/components/sidebar/sidebar_todo.vue12
1 files changed, 7 insertions, 5 deletions
diff --git a/app/assets/javascripts/vue_shared/alert_details/components/sidebar/sidebar_todo.vue b/app/assets/javascripts/vue_shared/alert_details/components/sidebar/sidebar_todo.vue
index 322ea64eb7e..f2c27cf611e 100644
--- a/app/assets/javascripts/vue_shared/alert_details/components/sidebar/sidebar_todo.vue
+++ b/app/assets/javascripts/vue_shared/alert_details/components/sidebar/sidebar_todo.vue
@@ -61,7 +61,7 @@ export default {
},
});
- return document.dispatchEvent(headerTodoEvent);
+ document.dispatchEvent(headerTodoEvent);
},
addToDo() {
this.isUpdating = true;
@@ -75,9 +75,10 @@ export default {
})
.then(({ data: { errors = [] } }) => {
if (errors[0]) {
- return this.throwError(errors[0]);
+ this.throwError(errors[0]);
+ return;
}
- return this.updateToDoCount(true);
+ this.updateToDoCount(true);
})
.catch(() => {
this.throwError();
@@ -98,9 +99,10 @@ export default {
})
.then(({ data: { errors = [] } }) => {
if (errors[0]) {
- return this.throwError(errors[0]);
+ this.throwError(errors[0]);
+ return;
}
- return this.updateToDoCount(false);
+ this.updateToDoCount(false);
})
.catch(() => {
this.throwError();