diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-18 09:09:32 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-18 09:09:32 +0000 |
commit | a8b87b4fe0ebd38c0f1d7789ae768a6bcacb6c51 (patch) | |
tree | c1526cfec8ac3d9189188e08265ef1110419f643 /app/assets/javascripts/releases/stores/modules/list/actions.js | |
parent | 0115b63f646be489bb9685dad0e4b0747a79de05 (diff) | |
download | gitlab-ce-a8b87b4fe0ebd38c0f1d7789ae768a6bcacb6c51.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/releases/stores/modules/list/actions.js')
-rw-r--r-- | app/assets/javascripts/releases/stores/modules/list/actions.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/releases/stores/modules/list/actions.js b/app/assets/javascripts/releases/stores/modules/list/actions.js index 3d28ef23fe7..945b093b983 100644 --- a/app/assets/javascripts/releases/stores/modules/list/actions.js +++ b/app/assets/javascripts/releases/stores/modules/list/actions.js @@ -23,7 +23,7 @@ export const requestReleases = ({ commit }) => commit(types.REQUEST_RELEASES); * * @param {String} projectId */ -export const fetchReleases = ({ dispatch, rootState }, { page = '1', projectId, projectPath }) => { +export const fetchReleases = ({ dispatch, rootState, state }, { page = '1' }) => { dispatch('requestReleases'); if ( @@ -35,7 +35,7 @@ export const fetchReleases = ({ dispatch, rootState }, { page = '1', projectId, .query({ query: allReleasesQuery, variables: { - fullPath: projectPath, + fullPath: state.projectPath, }, }) .then(response => { @@ -44,7 +44,7 @@ export const fetchReleases = ({ dispatch, rootState }, { page = '1', projectId, .catch(() => dispatch('receiveReleasesError')); } else { api - .releases(projectId, { page }) + .releases(state.projectId, { page }) .then(response => dispatch('receiveReleasesSuccess', response)) .catch(() => dispatch('receiveReleasesError')); } |