Commit 68850f67 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Minor review comments

parent 1c6076a0
...@@ -91,10 +91,11 @@ export default { ...@@ -91,10 +91,11 @@ export default {
.then((response) => { .then((response) => {
this.store.setCycleAnalyticsData(response); this.store.setCycleAnalyticsData(response);
this.selectDefaultStage(); this.selectDefaultStage();
this.isLoading = false;
}) })
.catch(() => { .catch(() => {
this.handleError(); this.handleError();
})
.finally(() => {
this.isLoading = false; this.isLoading = false;
}); });
}, },
...@@ -124,10 +125,11 @@ export default { ...@@ -124,10 +125,11 @@ export default {
.then((response) => { .then((response) => {
this.isEmptyStage = !response.events.length; this.isEmptyStage = !response.events.length;
this.store.setStageEvents(response.events, stage); this.store.setStageEvents(response.events, stage);
this.isLoadingStage = false;
}) })
.catch(() => { .catch(() => {
this.isEmptyStage = true; this.isEmptyStage = true;
})
.finally(() => {
this.isLoadingStage = false; this.isLoadingStage = false;
}); });
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment