diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 11:17:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 11:17:02 +0300 |
commit | b39512ed755239198a9c294b6a45e65c05900235 (patch) | |
tree | d234a3efade1de67c46b9e5a38ce813627726aa7 /app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/actions.js | |
parent | d31474cf3b17ece37939d20082b07f6657cc79a9 (diff) |
Add latest changes from gitlab-org/gitlab@15-3-stable-eev15.3.0-rc42
Diffstat (limited to 'app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/actions.js')
-rw-r--r-- | app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/actions.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/actions.js b/app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/actions.js index 408d34fbe93..51a38c434cb 100644 --- a/app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/actions.js +++ b/app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/actions.js @@ -26,8 +26,7 @@ export const receivePackagesListSuccess = ({ commit }, { data, headers }) => { export const requestPackagesList = ({ dispatch, state }, params = {}) => { dispatch('setLoading', true); - // eslint-disable-next-line camelcase - const { page = DEFAULT_PAGE, per_page = DEFAULT_PAGE_SIZE } = params; + const { page = DEFAULT_PAGE, per_page: perPage = DEFAULT_PAGE_SIZE } = params; const { sort, orderBy } = state.sorting; const type = state.config.forceTerraform ? TERRAFORM_SEARCH_TYPE @@ -38,7 +37,7 @@ export const requestPackagesList = ({ dispatch, state }, params = {}) => { const apiMethod = state.config.isGroupPage ? 'groupPackages' : 'projectPackages'; return Api[apiMethod](state.config.resourceId, { - params: { page, per_page, sort, order_by: orderBy, ...packageFilters }, + params: { page, per_page: perPage, sort, order_by: orderBy, ...packageFilters }, }) .then(({ data, headers }) => { dispatch('receivePackagesListSuccess', { data, headers }); |