Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Luís <aluis@gitlab.com>2018-05-22 13:27:46 +0300
committerAndré Luís <aluis@gitlab.com>2018-05-24 19:39:12 +0300
commit5901d5f722104b290b59e702a2f6efeeb82c2c76 (patch)
treec1c1632382715ea289471a7bf1019e435413d6cd
parentf89191621605ad3393b4e70df0d7ebc0a3199091 (diff)
Add desconstructing response.data for callback
-rw-r--r--app/assets/javascripts/ide/stores/actions/project.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/stores/actions/project.js b/app/assets/javascripts/ide/stores/actions/project.js
index 60886a58ff0..36ebe021821 100644
--- a/app/assets/javascripts/ide/stores/actions/project.js
+++ b/app/assets/javascripts/ide/stores/actions/project.js
@@ -112,7 +112,7 @@ export const pipelinePoll = ({ getters, dispatch }) => {
projectId: getters.currentProject.path_with_namespace,
commitSha: getters.lastCommit.id,
},
- successCallback: resp => dispatch('pollSuccessCallBack', { data: resp.data }),
+ successCallback: ({ data }) => dispatch('pollSuccessCallBack', { data }),
errorCallback: () => {
flash(
__('Something went wrong while fetching the latest pipeline status.'),