diff options
author | André Luís <aluis@gitlab.com> | 2018-05-22 13:27:46 +0300 |
---|---|---|
committer | André Luís <aluis@gitlab.com> | 2018-05-24 19:39:12 +0300 |
commit | 5901d5f722104b290b59e702a2f6efeeb82c2c76 (patch) | |
tree | c1c1632382715ea289471a7bf1019e435413d6cd | |
parent | f89191621605ad3393b4e70df0d7ebc0a3199091 (diff) |
Add desconstructing response.data for callback
-rw-r--r-- | app/assets/javascripts/ide/stores/actions/project.js | 2 |
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.'), |